Enable splits only if it is a release build and skip if 'noAbiSplits' is passed as project prop

This commit is contained in:
Ammar Githam 2021-04-04 02:29:43 +09:00
parent b6b27681f0
commit 04879819c5
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ android {
// Configures multiple APKs based on ABI.
abi {
// Enables building multiple APKs per ABI.
enable true
enable !project.hasProperty("noAbiSplits") && gradle.startParameter.taskNames.contains("Release")
// By default all ABIs are included, so use reset() and include to specify that we only
// want APKs for x86 and x86_64.