From 695bdc329ff69ca0a011f87158b90311d8f1bc68 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 1 Nov 2023 12:22:35 +0100 Subject: [PATCH] specifically only build known abis --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index fa57d9181..4ec3fc1c1 100644 --- a/build.gradle +++ b/build.gradle @@ -111,6 +111,8 @@ android { abi { universalApk true enable true + reset() + include project.ext.abiCodes.keySet() as String[] } } @@ -240,7 +242,7 @@ android { buildConfig true } - android.applicationVariants.all { variant -> + android.applicationVariants.configureEach { variant -> variant.outputs.each { output -> def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(com.android.build.OutputFile.ABI)) if (baseAbiVersionCode != null) {