From bb01b75637edc1159a3bdb3af86936e1c92f39c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Thu, 21 Apr 2022 17:27:56 -0700 Subject: [PATCH] Make Hermes from source the default Summary: If Hermes is enabled, it will be built from source instead of using the CocoaPods hermes-engine pod. Changelog: [iOS] [Changed] Build Hermes from source when Hermes is used Reviewed By: cortinico Differential Revision: D35693945 fbshipit-source-id: eadc638106180b183fd6d1e2a272dc3df66fa8b6 --- scripts/react_native_pods.rb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/react_native_pods.rb b/scripts/react_native_pods.rb index 9a20e147c41e51..9bc989ecce7a8b 100644 --- a/scripts/react_native_pods.rb +++ b/scripts/react_native_pods.rb @@ -110,14 +110,9 @@ def use_react_native! (options={}) if hermes_enabled pod 'React-hermes', :path => "#{prefix}/ReactCommon/hermes" - if ENV['BUILD_HERMES_SOURCE'] == '1' - Pod::UI.puts "[Hermes] Building Hermes from source" - hermes_source_path = downloadAndConfigureHermesSource(prefix) - pod 'hermes-engine', :path => "#{hermes_source_path}/hermes-engine.podspec" - else - Pod::UI.warn "[Hermes] Installing Hermes from CocoaPods. The `hermes-engine` pod has been deprecated and will not see future updates." - pod 'hermes-engine', '~> 0.11.0' - end + Pod::UI.puts "[Hermes] Building Hermes from source" + hermes_source_path = downloadAndConfigureHermesSource(prefix) + pod 'hermes-engine', :path => "#{hermes_source_path}/hermes-engine.podspec" pod 'libevent', '~> 2.1.12' end