Commit 6f54846
Allow overriding dev server ip via property (#55531)
Summary:
Similiar to how a specific port can be set also allow for setting a specific ip for the dev server.
This allows for easy configuration to aid in generating [reproducible builds](https://izzyondroid.org/docs/reproducibleBuilds/).
## Changelog:
<!-- Help reviewers and the release process by writing your own changelog entry.
Pick one each for the category and type tags:
[ANDROID] [ADDED] - Allow specifying dev server ip via gradle property
For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->
[ANDROID] [ADDED] - Allow specifying dev server ip via gradle property
Pull Request resolved: #55531
Test Plan:
1) Add `reactNativeDevServerIp=localhost` to `gradle.properties`
2) Generate an APK
3) Analyze the APK and check that the value of the string resource type `react_native_dev_server_ip` matches the value set in `gradle.properties`.
Reviewed By: cortinico
Differential Revision: D93143296
Pulled By: CalixTang
fbshipit-source-id: d0be23e9495f0ba1a6034dc31b6e725fd94a6a021 parent a308014 commit 6f54846
1 file changed
Lines changed: 2 additions & 1 deletion
File tree
- packages/gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
0 commit comments