Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Aug 16, 2024
1 parent 7d38e60 commit c2213cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/react-native/rn.patch.gradle.properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let content = fs.readFileSync(args['gradle-properties'], 'utf8');
const isHermesEnabled = content.includes('hermesEnabled=true');
if (enableHermes !== isHermesEnabled) {
const patch = enableHermes ? 'hermesEnabled=true' : 'hermesEnabled=false';
const content = content.match(/hermesEnabled=.*/)
content = content.match(/hermesEnabled=.*/)
? content.replace(/hermesEnabled=.*/g, patch)
: content.concat(`\n${patch}`);
if (enableHermes) {
Expand Down

0 comments on commit c2213cb

Please sign in to comment.