specifically only build known abis

This commit is contained in:
Daniel Gultsch 2023-11-01 12:22:35 +01:00
parent e76dfb96bf
commit 695bdc329f
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -111,6 +111,8 @@ android {
abi { abi {
universalApk true universalApk true
enable true enable true
reset()
include project.ext.abiCodes.keySet() as String[]
} }
} }
@ -240,7 +242,7 @@ android {
buildConfig true buildConfig true
} }
android.applicationVariants.all { variant -> android.applicationVariants.configureEach { variant ->
variant.outputs.each { output -> variant.outputs.each { output ->
def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(com.android.build.OutputFile.ABI)) def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(com.android.build.OutputFile.ABI))
if (baseAbiVersionCode != null) { if (baseAbiVersionCode != null) {