Don't package 32-bit x86 libs into universal apk

This commit is contained in:
FooIbar committed 2024-05-20 00:24:05 +08:00
1 parent 86323220dc
commit e5343f4360
1 file changed
+6 -1
+6 -1
View File
@@ -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 {