diff --git a/VERSION b/VERSION index a602fc9e..2bd77c74 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.9.4 +0.9.4 \ No newline at end of file diff --git a/example/index.html b/example/index.html index bb167112..1f9c3f67 100644 --- a/example/index.html +++ b/example/index.html @@ -5,7 +5,7 @@ PhoneGap - + diff --git a/lib/classic.rb b/lib/classic.rb index a2c06c0f..901129e8 100755 --- a/lib/classic.rb +++ b/lib/classic.rb @@ -82,11 +82,12 @@ class Classic # copies stuff from src directory into the android project directory (@path) def copy_libs + version = IO.read(File.join(@framework_dir, '../VERSION')) framework_res_dir = File.join(@framework_dir, "res") app_res_dir = File.join(@path, "res") # copies in the jar FileUtils.mkdir_p File.join(@path, "libs") - FileUtils.cp File.join(@framework_dir, "phonegap.jar"), File.join(@path, "libs") + FileUtils.cp File.join(@framework_dir, "phonegap.#{ version }.jar"), File.join(@path, "libs") # copies in the strings.xml FileUtils.mkdir_p File.join(app_res_dir, "values") FileUtils.cp File.join(framework_res_dir, "values","strings.xml"), File.join(app_res_dir, "values", "strings.xml") @@ -110,7 +111,7 @@ class Classic phonegapjs << IO.read(File.join(js_dir, script)) phonegapjs << "\n\n" end - File.open(File.join(@path, "assets", "www", @app_js_dir, "phonegap.js"), 'w') {|f| f.write(phonegapjs) } + File.open(File.join(@path, "assets", "www", @app_js_dir, "phonegap.#{ version }.js"), 'w') {|f| f.write(phonegapjs) } end # puts app name in strings