Commit f2a6db9
Export jserrorhandler headers in the reactnative prefab (#57608)
Summary:
Regression from #57236 which moved ErrorUtils into `jserrorhandler`. It didn't add `jserrorhandler` to the Android prefab header export list in `build.gradle.kts`. The Android prefab's header export is maintained separately from the CMake link graph, so the reactnative prefab module still ships cxxreact/ErrorUtils.h while never publishing the jserrorhandler/ErrorUtils.h it now includes. Any external consumer building against the react-android prefab fails. We caught this in our nightly tests.
## Changelog:
[ANDROID] [FIXED] - Export `jserrorhandler` headers in the `reactnative` prefab so external consumers of cxxreact/ErrorUtils.h can build.
Pull Request resolved: #57608
Test Plan:
Built the prefab headers and confirmed jserrorhandler/ErrorUtils.h is now published to the reactnative module:
```
./gradlew :packages:react-native:ReactAndroid:preparePrefab
find packages/react-native/ReactAndroid/build -path '*reactnative*jserrorhandler/ErrorUtils.h'
# → .../prefab-headers/reactnative/jserrorhandler/ErrorUtils.h
```
Reviewed By: cipolleschi
Differential Revision: D112798900
Pulled By: cortinico
fbshipit-source-id: 17f4511f095afac67358563ac78c2cbf8da736cd1 parent 4a66207 commit f2a6db9
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
| |||
0 commit comments