Hi, I'm new to PhoneGap and I'm testing out the command line tools to see how they might fit in with our existing build & deployment process. Currently I seem to unable to update the 'versionCode' property for Android apps, and I'm not sure what I might be doing wrong.
I am using PhoneGap 3.0.0-0.14.3, running on Windows
Here are the steps I've taken:
1) Create 'Hello World' sample app
phonegap create hello com.example.hello HelloWorld
2) Modify \hello\www\config.xml with updated version numbers
<widget id="com.example.hello" version="1.0.1" versionCode="2" ... >
3) Build the app
cd hello
phonegap build android
When I check the
hello\platforms\android\AndroidManifest.xml file, I can see that the 'android:versionName' property is 1.0.1, however the 'android:versionCode' property is set to 1. If I upload the resulting .APK file to TestFlight (or check it with other means) those version numbers match up '1.0.1 (1)' etc.
Am I doing something wrong? Should I be updating the version code somewhere else? Ideally I want to be able to set the version numbers in once place for both iOS and Android versions of my app. Any advice would be appreciated.
Cheers,
Simon