Commit 336e51e
Remove legacy Hermes C++ code and HERMES_V1_ENABLED compile definition (#56731)
Summary:
- Remove all dead C++ code behind `!defined(HERMES_V1_ENABLED)` guards in `HermesExecutorFactory.cpp` and `HermesInstance.cpp`
- Delete `Registration.h`, `Registration.cpp`, `ConnectionDemux.h`, `ConnectionDemux.cpp`, and `ConnectionDemuxTests.cpp` (entirely legacy code)
- Remove `HERMES_V1_ENABLED` compile definition from `react-native-flags.cmake`
- Remove `HERMES_V1_ENABLED` cache variable from Android `CMakeLists.txt`
This is Phase 1 of removing legacy Hermes support. Since Hermes V1 is already the default on all platforms and the 0.86 branch has been cut, all legacy Hermes code
is dead and can be safely removed.
## Changelog:
[General][Breaking] - Remove Legacy Hermes from C++ code
## Test plan
- [x] Android: `./gradlew :packages:rn-tester:android:app:assembleDebug` — BUILD SUCCEEDED
- [x] iOS: `xcodebuild` rn-tester on iPhone 16 Pro simulator — BUILD SUCCEEDED
Reviewed By: cortinico
Differential Revision: D1042288791 parent a3e87c6 commit 336e51e
9 files changed
Lines changed: 7 additions & 636 deletions
File tree
- packages/react-native
- ReactAndroid/src/main/jni
- ReactCommon
- cmake-utils
- hermes
- executor
- inspector-modern/chrome
- tests
- react/runtime/hermes
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 35 | + | |
38 | 36 | | |
Lines changed: 6 additions & 79 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 20 | | |
26 | 21 | | |
27 | 22 | | |
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
31 | 26 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 27 | | |
70 | 28 | | |
71 | 29 | | |
| |||
133 | 91 | | |
134 | 92 | | |
135 | 93 | | |
136 | | - | |
137 | | - | |
| 94 | + | |
138 | 95 | | |
139 | 96 | | |
140 | 97 | | |
141 | 98 | | |
142 | | - | |
143 | | - | |
144 | 99 | | |
145 | 100 | | |
146 | 101 | | |
| |||
149 | 104 | | |
150 | 105 | | |
151 | 106 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 107 | + | |
162 | 108 | | |
163 | | - | |
| 109 | + | |
| 110 | + | |
164 | 111 | | |
165 | 112 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 113 | + | |
173 | 114 | | |
174 | 115 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | 116 | | |
183 | 117 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | 118 | | |
189 | 119 | | |
190 | 120 | | |
| |||
221 | 151 | | |
222 | 152 | | |
223 | 153 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 154 | + | |
228 | 155 | | |
229 | 156 | | |
230 | 157 | | |
| |||
Lines changed: 0 additions & 143 deletions
This file was deleted.
Lines changed: 0 additions & 55 deletions
This file was deleted.
0 commit comments