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:
parent
96f6ae2b49
commit
02a74b10a1
|
@ -270,6 +270,8 @@ android {
|
||||||
def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
|
def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
|
||||||
if (baseAbiVersionCode != null) {
|
if (baseAbiVersionCode != null) {
|
||||||
output.versionCodeOverride = (100 * variant.versionCode) + baseAbiVersionCode
|
output.versionCodeOverride = (100 * variant.versionCode) + baseAbiVersionCode
|
||||||
|
} else {
|
||||||
|
output.versionCodeOverride = (100 * variant.versionCode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue