Skip to content

Move RecoverableError to its own target and the frameworks tier (#59027) - #59027

Open
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D124957581
Open

j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D124957581

Conversation

@j-piasecki

@j-piasecki j-piasecki commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

cxxreact/RecoverableError.h was exported only by cxxreact:bridge and guarded as private, so libraries could not use it under RN_STRICT_API, and the bridgeless Android runtime had to depend on the bridge to get it.

  • Add a header-only cxxreact:recoverableerror target. The include path stays <cxxreact/RecoverableError.h>; cxxreact:bridge re-exports it for existing users.
  • Move the header from the private tier to "for frameworks" (FrameworksGuard.h).
  • ReactAndroid's runtime/jni depends on cxxreact:recoverableerror instead of cxxreact:bridge.
  • Remove the unused include from Instance.cpp.

Changelog:
[General][Changed] - Move RecoverableError from private headers to "for frameworks" headers

Differential Revision: D124957581

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 13, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Oct 13, 2026
@meta-codesync

meta-codesync Bot commented Oct 13, 2026

Copy link
Copy Markdown

@j-piasecki has exported this pull request. If you are a Meta employee, you can view the originating Diff in D124957581.

…t#59027)

Summary:

`cxxreact/RecoverableError.h` was exported only by `cxxreact:bridge` and guarded as private, so libraries could not use it under `RN_STRICT_API`, and the bridgeless Android runtime had to depend on the bridge to get it.

- Add a header-only `cxxreact:recoverableerror` target. The include path stays `<cxxreact/RecoverableError.h>`; `cxxreact:bridge` re-exports it for existing users.
- Move the header from the private tier to "for frameworks" (`FrameworksGuard.h`).
- `ReactAndroid`'s `runtime/jni` depends on `cxxreact:recoverableerror` instead of `cxxreact:bridge`.
- Remove the unused include from `Instance.cpp`.

Changelog:
[General][Changed] - Move `RecoverableError` from private headers to "for frameworks" headers

Differential Revision: D124957581
@meta-codesync meta-codesync Bot changed the title Move RecoverableError to its own target and the frameworks tier Move RecoverableError to its own target and the frameworks tier (#59027) Oct 14, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant