Commit 30a2193
Drop chrome-launcher dependency (#57630)
Summary:
Pull Request resolved: #57630
**Motivation**
- Flagged as a papercut by Expo: `chrome-launcher` (and `chromium-edge-launcher`) constitute duplicate code (vs Expo's vendored version), and we can lighten our core package by dropping these dependencies.
- `launchDebuggerAppWindow` is now a fallback (since the rollout of the RNDT desktop shell), and we can reasonably delegate more rigorous browser detection to frameworks.
**This diff**
Remove both `chrome-launcher` dependencies and their usages in the `launchDebuggerAppWindow` code path. In their place, use `open` (bumped to 8.x)'s `openApp` API for Chrome only.
Changelog:
[General][Changed] - **React Native DevTools**: When using the fallback flow for launching DevTools (desktop app fails to launch), Microsoft Edge will not be attempted. DevTools will open as a standard window in the default browser.
Reviewed By: robhogan
Differential Revision: D1130552401 parent 0fc76bb commit 30a2193
7 files changed
Lines changed: 84 additions & 214 deletions
File tree
- flow-typed/npm
- packages/dev-middleware
- src/utils
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | | - | |
| 41 | + | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
Lines changed: 18 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 17 | | |
21 | 18 | | |
| 19 | + | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
33 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
46 | | - | |
47 | 51 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 52 | | |
71 | 53 | | |
72 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3314 | 3314 | | |
3315 | 3315 | | |
3316 | 3316 | | |
3317 | | - | |
3318 | | - | |
3319 | | - | |
3320 | | - | |
3321 | | - | |
3322 | | - | |
3323 | | - | |
3324 | | - | |
3325 | | - | |
3326 | | - | |
3327 | | - | |
3328 | | - | |
3329 | | - | |
3330 | | - | |
3331 | | - | |
3332 | | - | |
3333 | | - | |
3334 | | - | |
3335 | | - | |
3336 | | - | |
3337 | | - | |
3338 | 3317 | | |
3339 | 3318 | | |
3340 | 3319 | | |
| |||
3670 | 3649 | | |
3671 | 3650 | | |
3672 | 3651 | | |
3673 | | - | |
| 3652 | + | |
3674 | 3653 | | |
3675 | 3654 | | |
3676 | 3655 | | |
| |||
3777 | 3756 | | |
3778 | 3757 | | |
3779 | 3758 | | |
| 3759 | + | |
| 3760 | + | |
| 3761 | + | |
| 3762 | + | |
| 3763 | + | |
3780 | 3764 | | |
3781 | 3765 | | |
3782 | 3766 | | |
| |||
5534 | 5518 | | |
5535 | 5519 | | |
5536 | 5520 | | |
5537 | | - | |
| 5521 | + | |
5538 | 5522 | | |
5539 | 5523 | | |
5540 | 5524 | | |
| |||
5775 | 5759 | | |
5776 | 5760 | | |
5777 | 5761 | | |
5778 | | - | |
| 5762 | + | |
5779 | 5763 | | |
5780 | 5764 | | |
5781 | 5765 | | |
| |||
6442 | 6426 | | |
6443 | 6427 | | |
6444 | 6428 | | |
6445 | | - | |
6446 | | - | |
6447 | | - | |
6448 | | - | |
6449 | | - | |
6450 | | - | |
6451 | | - | |
6452 | | - | |
6453 | 6429 | | |
6454 | 6430 | | |
6455 | 6431 | | |
| |||
6666 | 6642 | | |
6667 | 6643 | | |
6668 | 6644 | | |
6669 | | - | |
6670 | | - | |
6671 | | - | |
6672 | | - | |
6673 | | - | |
6674 | 6645 | | |
6675 | 6646 | | |
6676 | 6647 | | |
| |||
7527 | 7498 | | |
7528 | 7499 | | |
7529 | 7500 | | |
7530 | | - | |
7531 | | - | |
7532 | | - | |
7533 | | - | |
| 7501 | + | |
| 7502 | + | |
| 7503 | + | |
| 7504 | + | |
7534 | 7505 | | |
7535 | | - | |
7536 | | - | |
| 7506 | + | |
| 7507 | + | |
| 7508 | + | |
7537 | 7509 | | |
7538 | 7510 | | |
7539 | 7511 | | |
| |||
0 commit comments