From a3066143de5438dfe7623e2f2f042231bfdff94a Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Mon, 13 Nov 2023 19:49:49 +0530 Subject: [PATCH] fix(build-logic): do not set ABI filters to projects with ABI split APKs --- .../androidide/plugins/conf/AndroidModuleConf.kt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/build-logic/ide/src/main/java/com/itsaky/androidide/plugins/conf/AndroidModuleConf.kt b/build-logic/ide/src/main/java/com/itsaky/androidide/plugins/conf/AndroidModuleConf.kt index c0122ca83d..4ee2b8c6c6 100644 --- a/build-logic/ide/src/main/java/com/itsaky/androidide/plugins/conf/AndroidModuleConf.kt +++ b/build-logic/ide/src/main/java/com/itsaky/androidide/plugins/conf/AndroidModuleConf.kt @@ -47,11 +47,6 @@ fun Project.configureAndroidModule( multiDexEnabled = true testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" - - ndk { - abiFilters.clear() - abiFilters += arrayOf("armeabi-v7a", "arm64-v8a") - } } compileOptions { @@ -74,6 +69,13 @@ fun Project.configureAndroidModule( "\"${name}\"") } } + } else { + defaultConfig { + ndk { + abiFilters.clear() + abiFilters += arrayOf("armeabi-v7a", "arm64-v8a") + } + } } // configure split APKs for ':app' module only