Commit cd11f31
Remove
Summary:
Bridgeless is the only supported mode in the New Architecture, so the
`bridgelessEnabled` flag on `DefaultNewArchitectureEntryPoint` was dead
configuration: every `load(...)` path passed `true`, and `isConfigurationValid`
raised an error when it was `false`. The entry point advertised a toggle that
could only ever hold the one value that is already mandatory.
This removes that surface from `ReactAndroid`:
- Removed the public `bridgelessEnabled` getter and its backing field.
- Removed the deprecated three-argument
`load(turboModulesEnabled, fabricEnabled, bridgelessEnabled)` overload. Its
implementation body moved into the two-argument overload, since dropping the
parameter alone would have collided with the existing
`load(Boolean, Boolean)` signature.
- Removed the `bridgelessEnabled` parameter from `isConfigurationValid`,
reducing the guard to `!turboModulesEnabled || !fabricEnabled` and shortening
the resulting error message.
- `loadWithFeatureFlags` no longer reads `enableBridgelessArchitecture()`.
Behavior note: `loadWithFeatureFlags` previously raised an error when a feature
flags provider returned `enableBridgelessArchitecture() == false`. That check is
gone. It was unreachable in practice because bridgeless is not optional, but it
is a removed validation rather than a pure no-op cleanup.
Bridgeless remains unconditionally enabled. Callers using the no-argument
`load()` are unaffected. The regenerated `ReactAndroid.api` drops exactly
`getBridgelessEnabled ()Z`, `load (ZZZ)V`, and
`load$default (ZZZILjava/lang/Object;)V`.
The equivalent iOS cleanup is intentionally left to a follow-up change.
Changelog:
[Android][Breaking] - Remove `DefaultNewArchitectureEntryPoint.bridgelessEnabled` and the deprecated three-argument `load(turboModulesEnabled, fabricEnabled, bridgelessEnabled)` overload; bridgeless is always enabled in the New Architecture
Differential Revision: D116317210bridgelessEnabled from DefaultNewArchitectureEntryPoint
1 parent b830082 commit cd11f31
3 files changed
Lines changed: 16 additions & 103 deletions
File tree
- packages/react-native/ReactAndroid
- api
- src
- main/java/com/facebook/react/defaults
- test/java/com/facebook/react/defaults
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1768 | 1768 | | |
1769 | 1769 | | |
1770 | 1770 | | |
1771 | | - | |
1772 | 1771 | | |
1773 | 1772 | | |
1774 | 1773 | | |
1775 | 1774 | | |
1776 | 1775 | | |
1777 | 1776 | | |
1778 | 1777 | | |
1779 | | - | |
1780 | 1778 | | |
1781 | 1779 | | |
1782 | | - | |
1783 | 1780 | | |
1784 | 1781 | | |
1785 | 1782 | | |
| |||
Lines changed: 9 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 70 | + | |
87 | 71 | | |
88 | 72 | | |
89 | 73 | | |
| |||
103 | 87 | | |
104 | 88 | | |
105 | 89 | | |
106 | | - | |
107 | 90 | | |
108 | 91 | | |
109 | 92 | | |
| |||
113 | 96 | | |
114 | 97 | | |
115 | 98 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 99 | | |
128 | 100 | | |
129 | 101 | | |
| |||
142 | 114 | | |
143 | 115 | | |
144 | 116 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 117 | | |
152 | 118 | | |
153 | 119 | | |
154 | 120 | | |
155 | | - | |
156 | 121 | | |
157 | | - | |
| 122 | + | |
158 | 123 | | |
159 | 124 | | |
160 | 125 | | |
161 | 126 | | |
162 | | - | |
| 127 | + | |
163 | 128 | | |
164 | 129 | | |
165 | 130 | | |
| |||
Lines changed: 7 additions & 56 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 25 | + | |
42 | 26 | | |
43 | 27 | | |
44 | 28 | | |
| |||
48 | 32 | | |
49 | 33 | | |
50 | 34 | | |
51 | | - | |
52 | 35 | | |
53 | 36 | | |
54 | 37 | | |
55 | 38 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 39 | + | |
67 | 40 | | |
68 | | - | |
69 | 41 | | |
70 | 42 | | |
71 | 43 | | |
| |||
74 | 46 | | |
75 | 47 | | |
76 | 48 | | |
77 | | - | |
78 | 49 | | |
79 | 50 | | |
80 | 51 | | |
81 | 52 | | |
82 | | - | |
| 53 | + | |
83 | 54 | | |
84 | 55 | | |
85 | 56 | | |
86 | 57 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 58 | + | |
| 59 | + | |
104 | 60 | | |
105 | 61 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 62 | + | |
113 | 63 | | |
| 64 | + | |
114 | 65 | | |
115 | 66 | | |
0 commit comments