Skip to content

[Hermes][Android] Remove hermesV1Enabled Gradle property and simplify Hermes version resolution#56700

Open
cipolleschi wants to merge 2 commits intomainfrom
cipolleschi/remove-legacy-hermes-phase2
Open

[Hermes][Android] Remove hermesV1Enabled Gradle property and simplify Hermes version resolution#56700
cipolleschi wants to merge 2 commits intomainfrom
cipolleschi/remove-legacy-hermes-phase2

Conversation

@cipolleschi
Copy link
Copy Markdown
Contributor

@cipolleschi cipolleschi commented May 6, 2026

Summary

  • Remove hermesV1Enabled / react.hermesV1Enabled Gradle property and all branching it controls
  • Rename HERMES_V1_VERSION_NAME to HERMES_VERSION_NAME in version.properties
  • Remove hermesV1Enabled from PrivateReactExtension, ProjectUtils, PropertyUtils, ReactPlugin
  • Simplify DependencyUtils.Coordinates to single Hermes version
  • Make -DHERMESVM_HEAP_HV_MODE=HEAP_HV_PREFER32 CMake flag unconditional
  • Remove -DHERMES_V1_ENABLED=1 CMake argument from ReactAndroid and Fantom builds
  • Delete hermesV1Enabled=true from gradle.properties
  • Update all Gradle plugin tests

Prev PR: #56697
Next PR: #56701

Changelog:

[Android][Removed] - Remove hermesV1Enabled and simplify the code

Test plan

  • Gradle plugin: ./gradlew -p packages/gradle-plugin build — BUILD SUCCESSFUL, all tests pass
  • Android: ./gradlew :packages:rn-tester:android:app:assembleDebug — BUILD SUCCESSFUL

@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 May 6, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels May 6, 2026
@cipolleschi cipolleschi changed the title Remove hermesV1Enabled Gradle property and simplify Hermes version resolution [Hermes] Remove hermesV1Enabled Gradle property and simplify Hermes version resolution May 6, 2026
@cipolleschi cipolleschi changed the title [Hermes] Remove hermesV1Enabled Gradle property and simplify Hermes version resolution [Hermes][Android] Remove hermesV1Enabled Gradle property and simplify Hermes version resolution May 6, 2026
@cipolleschi cipolleschi changed the base branch from cipolleschi/remove-legacy-hermes-phase1 to main May 7, 2026 12:16
@cipolleschi cipolleschi force-pushed the cipolleschi/remove-legacy-hermes-phase2 branch from 1eeb5b3 to 504ed67 Compare May 7, 2026 12:59
@cipolleschi cipolleschi force-pushed the cipolleschi/remove-legacy-hermes-phase2 branch from 504ed67 to 2a4e582 Compare May 7, 2026 15:10
Legacy Hermes support is no longer needed since 0.86 branch has been cut.
This removes all dead code behind `!defined(HERMES_V1_ENABLED)` guards
and the CMake infrastructure that set the HERMES_V1_ENABLED compile
definition.
…solution

Since legacy Hermes is no longer supported, remove the hermesV1Enabled
toggle from the Gradle plugin, version.properties, and all build scripts.
HERMES_V1_VERSION_NAME is renamed to HERMES_VERSION_NAME as the single
Hermes version. CMake flags like HERMESVM_HEAP_HV_MODE are now
unconditional.
@cipolleschi cipolleschi force-pushed the cipolleschi/remove-legacy-hermes-phase2 branch from 2a4e582 to 88909e2 Compare May 7, 2026 15:13
@cipolleschi cipolleschi marked this pull request as ready for review May 7, 2026 15:15
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 7, 2026

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this in D104244582.

Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

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.

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. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants