From b96e9559e729a89b4df663db6e77819801b3fc8e Mon Sep 17 00:00:00 2001 From: David Buchan-Swanson Date: Tue, 28 Aug 2018 13:35:17 +1000 Subject: [PATCH] [fix][android] allow bundling to be disabled for release --- react.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/react.gradle b/react.gradle index d71b5c14d37f0a..62a9d4ad5bf5e1 100644 --- a/react.gradle +++ b/react.gradle @@ -69,9 +69,11 @@ afterEvaluate { "--reset-cache", "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir, *extraArgs) } - enabled config."bundleIn${targetName}" || - config."bundleIn${variant.buildType.name.capitalize()}" ?: - targetName.toLowerCase().contains("release") + enabled config."bundleIn${targetName}" != null + ? config."bundleIn${targetName}" + : config."bundleIn${variant.buildType.name.capitalize()}" != null + ? config."bundleIn${variant.buildType.name.capitalize()}" + : targetName.toLowerCase().contains("release") } // Expose a minimal interface on the application variant and the task itself: