bugfix last() element for f-droid build

This commit is contained in:
Stephen Paul Weber 2023-02-10 21:32:33 -05:00 committed by Arne
parent e15beb9718
commit d989439e58

View file

@ -226,15 +226,4 @@ android {
error 'StringFormatInvalid', 'StringFormatMatches'
}
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(com.android.build.OutputFile.ABI))
if (baseAbiVersionCode != null) {
output.versionCodeOverride = (100 * project.android.defaultConfig.versionCode) + baseAbiVersionCode
} else {
output.versionCodeOverride = (100 * project.android.defaultConfig.versionCode) + grgit.log(includes: ["HEAD"], excludes: [tags.last()]).size()
}
}
}
}