CocoaPods: Do not configure Hermes search paths if Hermes is disabled

Summary:
The React-Hermes and hermes-engine headers are only needed when Hermes is enabled.

Changelog: [internal]

Reviewed By: cipolleschi

Differential Revision: D40451162

fbshipit-source-id: d38830f8abe57a91798e216d7930bb7add483899
This commit is contained in:
Héctor Ramos
2022-10-20 14:14:23 -07:00
committed by Facebook GitHub Bot
parent 6b129d81ed
commit 5aeb99e774
3 changed files with 40 additions and 7 deletions
+1
View File
@@ -67,6 +67,7 @@ def use_react_native! (
# Better to rely and enable this environment flag if the new architecture is turned on using flags.
ENV['RCT_NEW_ARCH_ENABLED'] = new_arch_enabled ? "1" : "0"
fabric_enabled = fabric_enabled || new_arch_enabled
ENV['USE_HERMES'] = hermes_enabled ? "1" : "0"
prefix = path