Commit 839219f
authored
feat: simplify iOS metro URL passing (#1829)
Simplifies how the Metro server URL is passed to the application.
We make use of a mechanism of `simctl` where extra arguments for the
`launch` command are passed to the application as `UserDefaults`
entries, which is how `react-native` gets the JS bundle URL.
### How Has This Been Tested:
- open react-native-(75-83) apps in Radon on iOS simulator
- if the app was previously installed, use the "Reinstall App" reload
option to clear the existing `UserDefaults` entries created by Radon
before this change
- verify the app loads and connects to Metro
- [BONUS POINTS] -- you can check that the option is not persistent by
opening the App Switcher, killing the app and restarting it from
Springboard -- the Application should fail to fetch the bundle now
### How Has This Change Been Documented:
INTERNAL1 parent f97af3d commit 839219f
1 file changed
+6
-88
lines changedLines changed: 6 additions & 88 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | 320 | | |
407 | 321 | | |
408 | 322 | | |
| |||
551 | 465 | | |
552 | 466 | | |
553 | 467 | | |
554 | | - | |
555 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
556 | 474 | | |
557 | 475 | | |
558 | 476 | | |
| |||
0 commit comments