Skip to content

RNTester-ios / RCTAppDelegate > correctly check for USE_HERMES Flag - #41573

Closed
christophpurrer wants to merge 1 commit into
react:mainfrom
christophpurrer:export-D51483740
Closed

RNTester-ios / RCTAppDelegate > correctly check for USE_HERMES Flag#41573
christophpurrer wants to merge 1 commit into
react:mainfrom
christophpurrer:export-D51483740

Conversation

@christophpurrer

Copy link
Copy Markdown
Contributor

Summary:
Changelog: [iOS][Fixed] RNTester-ios / RCTAppDelegate > correctly check for USE_HERMES Flag

On iOS we check for ENV flags if Hermes should be used:

and add necessary C++ packages based on that flag.

In code we do check for those imports
https://github.com/facebook/react-native/blob/b4d4aef057ebf90176287f22d72b4b3b8b280c9a/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.h#L16-L27

and decided if we should use Hermes or not.

However the .mm check is faulty and does not check for the RCT_USE_HERMES flag set in code.

Differential Revision: D51483740

@facebook-github-botfacebook-github-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 Nov 20, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D51483740

…eact#41573)
Summary:
Changelog: [iOS][Fixed] RNTester-ios / RCTAppDelegate > correctly check for USE_HERMES Flag
On iOS we check for ENV flags if Hermes should be used:
- https://github.com/facebook/react-native/blob/b4d4aef057ebf90176287f22d72b4b3b8b280c9a/packages/react-native/React-Core.podspec#L24
- https://github.com/facebook/react-native/blob/b4d4aef057ebf90176287f22d72b4b3b8b280c9a/packages/react-native/React/React-RCTFabric.podspec#L90
and add necessary C++ packages based on that flag.
In code we do check for those imports
https://github.com/facebook/react-native/blob/b4d4aef057ebf90176287f22d72b4b3b8b280c9a/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.h#L16-L27
and decided if we should use Hermes or not.
However the .mm check is faulty and does not check for the `RCT_USE_HERMES` flag set in code.
Reviewed By: fkgozali
Differential Revision: D51483740
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D51483740

@facebook-github-botfacebook-github-bot added the Merged This PR has been merged. label Nov 21, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in e364553.

huntie pushed a commit that referenced this pull request Nov 21, 2023
…41573)
Summary:
Pull Request resolved: #41573
Changelog: [iOS][Fixed] RNTester-ios / RCTAppDelegate > correctly check for USE_HERMES Flag
On iOS we check for ENV flags if Hermes should be used:
- https://github.com/facebook/react-native/blob/b4d4aef057ebf90176287f22d72b4b3b8b280c9a/packages/react-native/React-Core.podspec#L24
- https://github.com/facebook/react-native/blob/b4d4aef057ebf90176287f22d72b4b3b8b280c9a/packages/react-native/React/React-RCTFabric.podspec#L90
and add necessary C++ packages based on that flag.
In code we do check for those imports
https://github.com/facebook/react-native/blob/b4d4aef057ebf90176287f22d72b4b3b8b280c9a/packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.h#L16-L27
and decided if we should use Hermes or not.
However the .mm check is faulty and does not check for the `RCT_USE_HERMES` flag set in code.
Reviewed By: fkgozali
Differential Revision: D51483740
fbshipit-source-id: 428c27aae80fe6f9799cf6ae21a5d3801fe6ca11
cipolleschi added a commit that referenced this pull request Nov 23, 2023
cipolleschi added a commit that referenced this pull request Nov 24, 2023
huntie pushed a commit that referenced this pull request Nov 24, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.fb-exportedMergedThis PR has been merged.p: FacebookPartner: FacebookPartner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@christophpurrer@facebook-github-bot