From 04879819c50fa2cbe2699ded5eeb4e60cd8824c2 Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Sun, 4 Apr 2021 02:29:43 +0900 Subject: [PATCH] Enable splits only if it is a release build and skip if 'noAbiSplits' is passed as project prop --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 6c43d6f4..33ab6b4d 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -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.