Skip to content

Cover the Hermes executor with Stable API guards - #58055

Open
j-piasecki wants to merge 2 commits into
react:mainfrom
j-piasecki:export-D116934196
Open

Cover the Hermes executor with Stable API guards#58055
j-piasecki wants to merge 2 commits into
react:mainfrom
j-piasecki:export-D116934196

Conversation

@j-piasecki

Copy link
Copy Markdown
Contributor

Summary:
Classifies hermes/executor:executor as a private target under the three-tier C++ stable API visibility model. Consumers that opt into RN_STRICT_API now get an error if they include its headers directly; without that flag the guards are inert, so no existing build changes behaviour. No podspec edit is needed — React-hermes, the pod that compiles this module, is already configured.

Changelog: [Internal]

Differential Revision: D116934196

Summary:
`RCTAppSetupUtils.h` imports `<reacthermes/HermesExecutorFactory.h>` but names nothing from it, so the import and the conditional that wrapped only it are removed. This unblocks classifying the Hermes executor as a private target under the three-tier C++ stable API visibility model, which it cannot be while a public header reaches it. Code that relied on reaching `HermesExecutorFactory` through this header should import it directly.

Changelog:
[iOS][Changed] - `RCTAppSetupUtils.h` no longer transitively imports `HermesExecutorFactory.h`

Differential Revision: D116934198
Summary:
Classifies `hermes/executor:executor` as a private target under the three-tier C++ stable API visibility model. Consumers that opt into `RN_STRICT_API` now get an error if they include its headers directly; without that flag the guards are inert, so no existing build changes behaviour. No podspec edit is needed — `React-hermes`, the pod that compiles this module, is already configured.

Changelog: [Internal]

Differential Revision: D116934196
@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 Aug 21, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Aug 21, 2026
@meta-codesync

meta-codesync Bot commented Aug 21, 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 D116934196.

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