The extra digit need to be added to the end of the version code

The version code of default config is generated by the environment variable
and the value from AndroidManifest.xml.
The test case is using the command line "cordova build -- --versionCode=100".. This closes #211
This commit is contained in:
fujunwei 2015-08-31 10:27:33 +08:00 committed by Nikhil Khandelwal
parent 000eb0916e
commit 0429bb0ab8

View File

@ -184,13 +184,13 @@ android {
if (Boolean.valueOf(cdvBuildMultipleApks)) {
productFlavors {
armv7 {
versionCode cdvVersionCode ?: defaultConfig.versionCode + 2
versionCode defaultConfig.versionCode + 2
ndk {
abiFilters "armeabi-v7a", ""
}
}
x86 {
versionCode cdvVersionCode ?: defaultConfig.versionCode + 4
versionCode defaultConfig.versionCode + 4
ndk {
abiFilters "x86", ""
}