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 77ec4d667e
commit 668ad9a59d

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)
}
}