Skip to content

Commit eb89429

Browse files
committed
build: keep apks splitted by ABI with release build type
1 parent 72a0c45 commit eb89429

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

build-logic/convention/src/main/kotlin/NativeBaseConventionPlugin.kt

+8-17
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,16 @@ open class NativeBaseConventionPlugin : Plugin<Project> {
2828
}
2929
}
3030

31-
if (ApkRelease.run { target.buildApkRelease }) {
32-
// in this case, the version code of arm64-v8a will be used for the single production,
33-
// unless `buildABI` is specified
34-
defaultConfig {
35-
ndk {
36-
abiFilters.add("armeabi-v7a")
37-
abiFilters.add("arm64-v8a")
38-
abiFilters.add("x86")
39-
abiFilters.add("x86_64")
40-
}
41-
}
42-
} else {
43-
splits {
44-
abi {
45-
isEnable = true
46-
reset()
31+
splits {
32+
abi {
33+
isEnable = true
34+
reset()
35+
if (ApkRelease.run { target.buildApkRelease }) {
36+
include("x86", "x86_64", "armeabi-v7a", "arm64-v8a")
37+
} else {
4738
include(*target.buildABI.split(',').toTypedArray())
48-
isUniversalApk = false
4939
}
40+
isUniversalApk = false
5041
}
5142
}
5243
}

0 commit comments

Comments
 (0)