mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Allow bundle task to be disabled for release (#18892)
Summary: The current system would always end up falling back to `true` for release builds Pull Request resolved: https://github.com/facebook/react-native/pull/18892 Differential Revision: D14069444 Pulled By: hramos fbshipit-source-id: 16e32a366b3b2e252a98a967da827ba1ebaeff85
This commit is contained in:
committed by
Facebook Github Bot
parent
4c400a10c2
commit
6b21109d3d
+5
-3
@@ -76,9 +76,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${buildTypeName.capitalize()}" != null
|
||||
? config."bundleIn${buildTypeName.capitalize()}"
|
||||
: targetName.toLowerCase().contains("release")
|
||||
}
|
||||
|
||||
// Expose a minimal interface on the application variant and the task itself:
|
||||
|
||||
Reference in New Issue
Block a user