From a59c92f55a25ab51b361e309d0a7a7f96647ed24 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 19 Oct 2020 12:29:11 +0200 Subject: [PATCH] Fix issue with VersionCode --- vector/build.gradle | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vector/build.gradle b/vector/build.gradle index bfd50117d1..4fc2f831da 100644 --- a/vector/build.gradle +++ b/vector/build.gradle @@ -39,9 +39,9 @@ def generateVersionCodeFromVersionName() { def getVersionCode() { if (gitBranchName() == "develop") { - return generateVersionCodeFromTimestamp() + return generateVersionCodeFromTimestamp() * 10 } else { - return generateVersionCodeFromVersionName() + return generateVersionCodeFromVersionName() * 10 } } @@ -169,7 +169,10 @@ android { variant.outputs.each { output -> def baseAbiVersionCode = project.ext.abiVersionCodes.get(output.getFilter(OutputFile.ABI)) // Known limitation: it does not modify the value in the BuildConfig.java generated file - output.versionCodeOverride = variant.versionCode * 10 + baseAbiVersionCode + print "ABI " + output.getFilter(OutputFile.ABI) + " \tvariant.versionCode " + variant.versionCode + // See https://issuetracker.google.com/issues/171133218 + output.versionCodeOverride = variant.versionCode + baseAbiVersionCode + print " \t-> VersionCode = " + output.versionCodeOverride + "\n" } }