77require 'rexml/document'
88
99HERMES_GITHUB_URL = "https://github.com/facebook/hermes.git"
10+ ENV_BUILD_FROM_SOURCE = "RCT_BUILD_HERMES_FROM_SOURCE"
1011
1112module HermesEngineSourceType
1213 LOCAL_PREBUILT_TARBALL = :local_prebuilt_tarball
@@ -30,7 +31,7 @@ def HermesEngineSourceType.isFromSource(source_type)
3031# - To use a specific tarball, install the dependencies with:
3132# `HERMES_ENGINE_TARBALL_PATH=<path_to_tarball> bundle exec pod install`
3233# - To force a build from source, install the dependencies with:
33- # `BUILD_FROM_SOURCE =true bundle exec pod install`
34+ # `RCT_BUILD_HERMES_FROM_SOURCE =true bundle exec pod install`
3435# If none of the two are provided, Cocoapods will check whether there is a tarball for the current version
3536# (either release or nightly). If not, it will fall back to building from source (the latest commit on main).
3637#
@@ -85,11 +86,11 @@ def hermes_commit_envvar_defined()
8586end
8687
8788def force_build_from_tag ( react_native_path )
88- return ENV [ 'BUILD_FROM_SOURCE' ] === 'true' && File . exist? ( hermestag_file ( react_native_path ) )
89+ return ENV [ ENV_BUILD_FROM_SOURCE ] === 'true' && File . exist? ( hermestag_file ( react_native_path ) )
8990end
9091
9192def force_build_from_main ( react_native_path )
92- return ENV [ 'BUILD_FROM_SOURCE' ] === 'true' && !File . exist? ( hermestag_file ( react_native_path ) )
93+ return ENV [ ENV_BUILD_FROM_SOURCE ] === 'true' && !File . exist? ( hermestag_file ( react_native_path ) )
9394end
9495
9596def release_artifact_exists ( version )
0 commit comments