From 0429bb0ab8c399cf6f57289a9d5a3bc8b8cbd083 Mon Sep 17 00:00:00 2001 From: fujunwei Date: Mon, 31 Aug 2015 10:27:33 +0800 Subject: [PATCH] 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 --- bin/templates/project/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/templates/project/build.gradle b/bin/templates/project/build.gradle index 41953081..f9561bb9 100644 --- a/bin/templates/project/build.gradle +++ b/bin/templates/project/build.gradle @@ -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", "" }