logankoester / grunt-phonegap

A Grunt plugin to provide local build tasks for Phonegap applications
MIT License
173 stars 61 forks source link

[Android] Wrong versionCode #107

Open leosimas opened 9 years ago

leosimas commented 9 years ago

The command "grunt phonegap:run:android" is creating the APK file with wrong versionCode. The "phonegap:release:android" creates the APK with the right one.

I'm using the versionCode with value "321" and running "grunt phonegap:run:android".

And used the command "aapt dump badging myapp.apk" to check the generated APK file. The versionCode is "30201" versioncode

leosimas commented 9 years ago

It seems to be ignoring the versionCode and using the version. I set the versionCode to 10 and the versionName to 10.0.1 The resulted versionCode was 100001. It seems to be parsing the versionName in the format "dd.dd.dd" and turning to a versionCode "dddddd".