don't multiply version codes by 1048576, could mess up upgrades

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-02-12 14:14:57 +01:00
parent 1ea49a80fc
commit 13c7f06317
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 1 additions and 2 deletions

View File

@ -268,8 +268,7 @@ android {
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
def abi = output.getFilter(OutputFile.ABI) def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride = output.versionCodeOverride = versionCodes.get(abi) + defaultConfig.versionCode
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
} }
} }