Skip to content

Commit

Permalink
[Fix] Let React Native decide the Hermes version to use in the Codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo Cipolleschi committed Nov 3, 2022
1 parent f0054e1 commit becb47c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/cocoapods/__tests__/codegen_utils-test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def get_podspec_no_fabric_no_script
"RCTTypeSafety": ["99.98.97"],
"React-Core": ["99.98.97"],
"React-jsi": ["99.98.97"],
"hermes-engine": ["99.98.97"],
"hermes-engine": [],
"ReactCommon/turbomodule/core": ["99.98.97"]
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/cocoapods/codegen_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def get_react_codegen_spec(package_json_file, folly_version: '2021.07.22.00', fa

if hermes_enabled
spec[:'dependencies'].merge!({
'hermes-engine': [version],
'hermes-engine': [], # let React Native decide which version of Hermes Engine to be used. Otherwise, this can create conflicts.
});
else
spec[:'dependencies'].merge!({
Expand Down

0 comments on commit becb47c

Please sign in to comment.