From 8237ff2ef3583dab6b003d686fcdd7a43a096595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Fri, 25 Mar 2022 03:29:53 -0700 Subject: [PATCH] Use Hermes Engine from CocoaPods and fix Circle CI (#33478) Summary: Undoing the recent change that enabled Hermes to be built from source by default. Building Hermes from source now requires the use of the BUILD_HERMES_SOURCE envvar, again. To be re-enabled shortly. Pull Request resolved: https://github.com/facebook/react-native/pull/33478 Changelog: [Internal] Reviewed By: cortinico Differential Revision: D35100459 fbshipit-source-id: ec83fcdf2432c689b0c02f86fbabcc8625975d51 --- scripts/react_native_pods.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/react_native_pods.rb b/scripts/react_native_pods.rb index 498db013110b0a..70e944d8e67982 100644 --- a/scripts/react_native_pods.rb +++ b/scripts/react_native_pods.rb @@ -110,8 +110,12 @@ def use_react_native! (options={}) if hermes_enabled pod 'React-hermes', :path => "#{prefix}/ReactCommon/hermes" - hermes_source_path = downloadAndConfigureHermesSource(prefix) - pod 'hermes-engine', :path => "#{hermes_source_path}/hermes-engine.podspec" + if ENV['BUILD_HERMES_SOURCE'] == '1' + hermes_source_path = downloadAndConfigureHermesSource(prefix) + pod 'hermes-engine', :path => "#{hermes_source_path}/hermes-engine.podspec" + else + pod 'hermes-engine', '~> 0.11.0' + end pod 'libevent', '~> 2.1.12' end