Skip to content

Commit

Permalink
[fix][android] allow bundling to be disabled for release
Browse files Browse the repository at this point in the history
  • Loading branch information
deecewan committed Aug 29, 2018
1 parent ee543ec commit b96e955
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions react.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b96e955

Please sign in to comment.