-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: integrate RNRepo prebuilt artifacts to reduce native build times #7382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+48
−1
Closed
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "denyList": { | ||
| "android": [ | ||
| "@lodev09/react-native-true-sheet", | ||
| "expo-asset", | ||
| "expo-file-system", | ||
| "expo-font", | ||
| "react-native-callkeep", | ||
| "react-native-webview" | ||
| ], | ||
| "ios": [ | ||
| "react-native-callkeep", | ||
| "react-native-config-reader", | ||
| "react-native-gesture-handler", | ||
| "react-native-webview" | ||
| ] | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
Does@rnrepo/build-tools0.1.4 honorDISABLE_RNREPO=1before Gradle/CocoaPods plugin initialization, or only after the plugins have already been resolved/applied?💡 Result:
Answer: Based on the official rnrepo documentation, DISABLE_RNREPO is checked to “completely skip the RNRepo plugin setup” for a given build, rather than only disabling individual downloads later. The docs indicate that when DISABLE_RNREPO is set (to any value), the plugin will not execute at all for that Gradle/CocoaPods run—so it prevents the RNRepo plugin’s behavior from running during that build lifecycle, not merely after the plugin has already been resolved/applied. Evidence: - The troubleshooting guide states: “If this variable is set to ANY value, the plugin will not execute.” [1] - It further says: “This environment variable takes precedence and will completely skip the RNRepo plugin setup regardless of the Gradle task being executed.” [1] Important nuance: - The documentation confirms “skip setup/execute” behavior, but it does not spell out the exact implementation order relative to Gradle plugin resolution/application phases (i.e., whether the code path avoids all work immediately upon init vs. after the Gradle/CocoaPods plugin entrypoint is invoked). It only guarantees that the plugin won’t execute / setup when DISABLE_RNREPO is set. [1] For reference, official setup/testing commands show using DISABLE_RNREPO with Gradle commands like assembleDebug. [2]
Citations:
Gate rnrepo build-tools resolution/classpath wiring behind
DISABLE_RNREPO@rnrepo/build-toolsdocs state that whenDISABLE_RNREPOis set to any value, the plugin “will not execute / completely skip the RNRepo plugin setup.” However,android/build.gradlestill unconditionally runsrequire.resolve('@rnrepo/build-tools/package.json')and addsprebuilds-plugin.jarto the buildscript classpath during Gradle configuration. That means the documented opt-out may skip plugin behavior, but it does not avoid requiring@rnrepo/build-tools/the jar to be present and resolvable at configuration time—potentially undermining the “source-only” escape hatch.Wrap the
rnrepoDirresolution andclasspath fileTree(...)registration in aDISABLE_RNREPOcheck.🤖 Prompt for AI Agents