Skip to content

Commit beeece9

Browse files
committed
[fix][android] allow bundling to be disabled for release
1 parent e8c7cb1 commit beeece9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

react.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ afterEvaluate {
6969
"--reset-cache", "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir, *extraArgs)
7070
}
7171

72-
enabled config."bundleIn${targetName}" ||
73-
config."bundleIn${variant.buildType.name.capitalize()}" ?:
74-
targetName.toLowerCase().contains("release")
72+
enabled config."bundleIn${targetName}" != null
73+
? config."bundleIn${targetName}"
74+
: config."bundleIn${variant.buildType.name.capitalize()}" != null
75+
? config."bundleIn${variant.buildType.name.capitalize()}"
76+
: targetName.toLowerCase().contains("release")
7577
}
7678

7779
// Expose a minimal interface on the application variant and the task itself:

0 commit comments

Comments
 (0)