Allow to opt-in to use the new Hermes on Android (#53580)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/53580

Changelog: [ANDROID][ADDED] Added opt-in to use the new Hermes

Reviewed By: cortinico

Differential Revision: D81035114

fbshipit-source-id: d01e44190941d161cf641ec4e03ed487aff18dd8
This commit is contained in:
Jakub Piasecki
2025-09-08 14:38:09 +01:00
committed by Vitali Zaidman
parent af090eaa69
commit af734f0ccd
12 changed files with 150 additions and 46 deletions
@@ -155,6 +155,8 @@ function updateTestFiles(
async function updateGradleFile(version /*: string */) /*: Promise<void> */ {
const contents = await fs.readFile(GRADLE_FILE_PATH, 'utf-8');
// TODO: T231755027 set HERMES_VERSION_NAME
return fs.writeFile(
GRADLE_FILE_PATH,
contents.replace(/^VERSION_NAME=.*/, `VERSION_NAME=${version}`),