Set hermes for Android template project in testing

Summary:
Changelog: [Internal] - Set the hermes value as specified by the test-e2e-local script flag. Right now, the script incorrectly ignores the flag

By default, the template project has `hermesEnabled=true`

Reviewed By: cipolleschi

Differential Revision: D49831355

fbshipit-source-id: 7fb8613fa86f2c6140b7d25b16aeb583e6e26c12
This commit is contained in:
Luna Wei
2023-10-02 10:40:28 -07:00
committed by Facebook GitHub Bot
parent afddbb2b67
commit c03d520e16
+10
View File
@@ -252,6 +252,16 @@ async function testRNTestProject(circleCIArtifacts) {
`echo "react.internal.mavenLocalRepo=${mavenLocalPath}" >> android/gradle.properties`,
);
// Update gradle properties to set Hermes as false
if (!argv.hermes) {
sed(
'-i',
'hermesEnabled=true',
'hermesEnabled=false',
'android/gradle.properties',
);
}
// doing the pod install here so that it's easier to play around RNTestProject
cd('ios');
exec('bundle install');