Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable hermes on android #8577

Closed
wants to merge 4 commits into from
Closed

Conversation

gkartalis
Copy link
Member

@gkartalis gkartalis commented Apr 25, 2023

This PR resolves MOPLAT-732

Description

Re-enables hermes on android to investigate https://artsyproduct.atlassian.net/browse/MOPLAT-732

Turns out updating hermes-engine to version 0.10.0 fixes the issue that we were having, we def need to further QA it but so far it looks good!

Found the mapping of react-native versions to hermes versions here

PR Checklist

  • I have tested my changes on iOS and Android.
  • I hid my changes behind a feature flag, or they don't need one.
  • I have included screenshots or videos, or I have not changed the UI.
  • I have added tests, or my changes don't require any.
  • I added an app state migration, or my changes do not require one.
  • I have documented any follow-up work that this PR will require, or it does not require any.
  • I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

  • I would like at least one of the reviewers to run this PR on the simulator or device.
Changelog updates

Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

  • enable hermes on android - gkartalis

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

@gkartalis
Copy link
Member Author

exciting! Seems like updating hermes-engine to version 10 fixes the issue! 🥇 found here a "mapping" of rn-versions and hermes-engine versions

@gkartalis gkartalis marked this pull request as ready for review May 5, 2023 11:32
Copy link
Member

@MounirDhahri MounirDhahri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for getting back to this. @artsy/mobile-platform how about we create a beta and ask our 3rd party QA vendor to review this over the weekend?

@@ -125,6 +119,14 @@ def jscFlavor = 'org.webkit:android-jsc-intl:+'
* on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
* and the benefits of using Hermes will therefore be sharply reduced.
*/

// order matters here, this must be set before the react.gradle apply
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: was going to mention that, thanks for the note

@gkartalis
Copy link
Member Author

@MounirDhahri Almost there, trying to figure out if "hermes-engine": "0.10.0" is stable though 🤔 there are some comments on this issue about some hermes issues with incorrect bytecode still so not sure if we should first upgrade react-native and then do hermes

@gkartalis gkartalis mentioned this pull request May 10, 2023
8 tasks
@gkartalis
Copy link
Member Author

Closing this due to #8658

@gkartalis gkartalis closed this May 10, 2023
@gkartalis gkartalis deleted the gkartalis/hermes-again branch May 10, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants