Commit f47bd1c
Derive iOS inspector URL scheme from bundle URL for HTTPS support (facebook#55871)
Summary:
## Summary:
Use the bundle URL's scheme (http or https) when constructing inspector device
URLs and open-debugger URLs in `RCTInspectorDevServerHelper`, instead of
hardcoding `http://`. This allows the inspector and debugger to work correctly
when the dev server is accessed over HTTPS.
## Changelog:
[IOS][CHANGED] - Derive inspector and debugger URL scheme from bundle URL to support HTTPS dev servers
## Test Plan:
Verified that `getInspectorDeviceUrl` and `openDebugger` now use the bundle
URL's scheme, falling back to `http` when no scheme is available.
## Facebook:
Applied from nest/mobile/apps/atod-sample/patches/react-native+0.83.1+007+atod-ios-inspector-https.patch
Reviewed By: cortinico
Differential Revision: D950379691 parent 2824468 commit f47bd1c
File tree
1 file changed
+12
-8
lines changed- packages/react-native/React/DevSupport
1 file changed
+12
-8
lines changedLines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| |||
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
153 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
| |||
0 commit comments