Skip to content

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

Draft
cipolleschi wants to merge 1 commit intocipolleschi/remove-legacy-hermes-phase1from
cipolleschi/remove-legacy-hermes-phase2
Draft

[Hermes][Android] Remove hermesV1Enabled Gradle property and simplify Hermes version resolution#56700
cipolleschi wants to merge 1 commit intocipolleschi/remove-legacy-hermes-phase1from
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

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

…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.
@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
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Caution

Invalid Base Branch

The base branch for this PR is cipolleschi/remove-legacy-hermes-phase1, which is not main or a -stable branch.
Are you sure you want to target this branch?

@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
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.

1 participant