From e5343f4360e8ba882e924e22ab54079910739b59 Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Mon, 20 May 2024 00:15:27 +0800 Subject: [PATCH] Don't package 32-bit x86 libs into universal apk --- app/build.gradle.kts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 67498d453..f2071c047 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -17,6 +17,8 @@ plugins { alias(libs.plugins.composeCompilerReportGenerator) } +val supportedAbis = arrayOf("arm64-v8a", "x86_64", "armeabi-v7a") + android { compileSdk = 34 ndkVersion = "27.0.11718014-beta1" @@ -27,7 +29,7 @@ android { isEnable = true reset() if (isRelease) { - include("arm64-v8a", "x86_64", "armeabi-v7a") + include(*supportedAbis) isUniversalApk = true } else { include("arm64-v8a", "x86_64") @@ -84,6 +86,9 @@ android { buildConfigField("String", "REPO_NAME", "\"$repoName\"") buildConfigField("String", "CHROME_VERSION", "\"$chromeVersion\"") ndk { + if (isRelease) { + abiFilters.addAll(supportedAbis) + } debugSymbolLevel = "FULL" } externalNativeBuild {