Skip to content

Commit

Permalink
build: keep apks splitted by ABI with release build type
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Jan 15, 2024
1 parent 9c01f60 commit 82e82b2
Showing 1 changed file with 8 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,16 @@ open class NativeBaseConventionPlugin : Plugin<Project> {
}
}

if (ApkRelease.run { target.buildApkRelease }) {
// in this case, the version code of arm64-v8a will be used for the single production,
// unless `buildABI` is specified
defaultConfig {
ndk {
abiFilters.add("armeabi-v7a")
abiFilters.add("arm64-v8a")
abiFilters.add("x86")
abiFilters.add("x86_64")
}
}
} else {
splits {
abi {
isEnable = true
reset()
splits {
abi {
isEnable = true
reset()
if (ApkRelease.run { target.buildApkRelease }) {
include("x86", "x86_64", "armeabi-v7a", "arm64-v8a")
} else {
include(*target.buildABI.split(',').toTypedArray())
isUniversalApk = false
}
isUniversalApk = false
}
}
}
Expand Down

0 comments on commit 82e82b2

Please sign in to comment.