use better version code for universal to allow people to upgrade from abi to univerals as long is the base version is higher

This commit is contained in:
Daniel Gultsch 2020-04-23 20:32:52 +02:00
parent 96f6ae2b49
commit 02a74b10a1
1 changed files with 2 additions and 0 deletions

View File

@ -270,6 +270,8 @@ android {
def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
if (baseAbiVersionCode != null) {
output.versionCodeOverride = (100 * variant.versionCode) + baseAbiVersionCode
} else {
output.versionCodeOverride = (100 * variant.versionCode)
}
}