Fix split apk (#4165)

This commit is contained in:
ᡠᠵᡠᡳ ᡠᠵᡠ ᠮᠠᠨᡩ᠋ᠠᠨ
2024-12-21 14:21:58 +08:00
committed by GitHub
parent 149bb049a5
commit 4cf28d0ad0

View File

@@ -16,23 +16,22 @@ android {
versionName = "1.9.26"
multiDexEnabled = true
val abiFilterList = (properties["ABI_FILTERS"] as? String)?.split(';')
splits {
abi {
isEnable = true
include(
"arm64-v8a",
"armeabi-v7a",
"x86_64",
"x86"
)
isUniversalApk = true
}
}
val abiFilterList = (properties["ABI_FILTERS"] as? String)?.split(';')
if (abiFilterList != null) {
ndk {
abiFilters.addAll(abiFilterList)
reset()
if (abiFilterList != null && abiFilterList.isNotEmpty()) {
include(*abiFilterList.toTypedArray())
} else {
include(
"arm64-v8a",
"armeabi-v7a",
"x86_64",
"x86"
)
}
isUniversalApk = abiFilterList.isNullOrEmpty()
}
}