Skip to content

Use prebuilt Hermes when building Android on CI#54707

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

Use prebuilt Hermes when building Android on CI#54707
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D87929652

Conversation

@j-piasecki

Copy link
Copy Markdown
Contributor

Summary: Changelog: [Internal]

Differential Revision: D87929652

@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 Nov 26, 2025
@meta-codesync

meta-codesync Bot commented Nov 26, 2025

Copy link
Copy Markdown

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

@facebook-github-bot facebook-github-bot added the p: Facebook Partner: Facebook label Nov 26, 2025
@j-piasecki j-piasecki force-pushed the export-D87929652 branch 2 times, most recently from 6de5afd to 4c98379 Compare December 2, 2025 08:27
@j-piasecki j-piasecki force-pushed the export-D87929652 branch 13 times, most recently from 721c2f3 to 404cb20 Compare December 12, 2025 14:45

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

Summary:

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D87929652
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @j-piasecki in 076e6a1

When will my fix make it into a release? | How to file a pick request?

@meta-codesync

meta-codesync Bot commented Dec 15, 2025

Copy link
Copy Markdown

This pull request has been merged in 076e6a1.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Dec 15, 2025
chrfalch added a commit that referenced this pull request Jan 27, 2026
…om-source

PR #54707 removed `prefabPublishing = true` from hermes-engine when
switching to prebuilt Hermes by default. This broke build-from-source
because AGP no longer generates the CMake config file needed by
`find_package(hermes-engine)` in ReactAndroid's native build.

Adding `prefabPublishing = true` back restores the CMake config
generation and proper Gradle task ordering.

The same PR also disables all hermes tasks when not building from
source - which will make the CI work correctly - ie. not build hermes
from source when not needed.
meta-codesync Bot pushed a commit that referenced this pull request Jan 27, 2026
…om-source (#55310)

Summary:
PR #54707 removed `prefabPublishing = true` from hermes-engine when switching to prebuilt Hermes by default. This broke build-from-source because AGP no longer generates the CMake config file needed by `find_package(hermes-engine)` in ReactAndroid's native build.

Adding `prefabPublishing = true` back restores the CMake config generation and proper Gradle task ordering.

The same PR also disables all hermes tasks when not building from source - which will make the CI work correctly - ie. not build hermes from source when not needed.

## Changelog:

[ANDROID] [FIXED] - Re-added prefabPublishing=true to make Android build from source work again

Pull Request resolved: #55310

Test Plan:
- Build RN Tester and build from source, verify that Android builds correctly.
- Check CI and verify that Hermes is not built from source

Reviewed By: cipolleschi

Differential Revision: D91581389

Pulled By: cortinico

fbshipit-source-id: 01953cc071d22faa84920ebe30cc1426c8d420e4
alanleedev pushed a commit that referenced this pull request Jan 29, 2026
…om-source (#55310)

Summary:
PR #54707 removed `prefabPublishing = true` from hermes-engine when switching to prebuilt Hermes by default. This broke build-from-source because AGP no longer generates the CMake config file needed by `find_package(hermes-engine)` in ReactAndroid's native build.

Adding `prefabPublishing = true` back restores the CMake config generation and proper Gradle task ordering.

The same PR also disables all hermes tasks when not building from source - which will make the CI work correctly - ie. not build hermes from source when not needed.

## Changelog:

[ANDROID] [FIXED] - Re-added prefabPublishing=true to make Android build from source work again

Pull Request resolved: #55310

Test Plan:
- Build RN Tester and build from source, verify that Android builds correctly.
- Check CI and verify that Hermes is not built from source

Reviewed By: cipolleschi

Differential Revision: D91581389

Pulled By: cortinico

fbshipit-source-id: 01953cc071d22faa84920ebe30cc1426c8d420e4
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. fb-exported Merged This PR has been merged. 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.

4 participants