Skip to content

Commit

Permalink
fix: remove duplicated vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo Cipolleschi committed Sep 23, 2022
1 parent 2fbb933 commit 46bc854
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions sdks/hermes-engine/hermes-engine.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ version = package['version']
hermestag_file = File.join(react_native_path, "sdks", ".hermesversion")
isInCI = ENV['CI'] == true


ENV['REACT_NATIVE_PATH'] = react_native_path

# sdks/hermesc/osx-bin/ImportHermesc.cmake
import_hermesc_file=File.join(react_native_path, "sdks", "hermesc", "osx-bin", "ImportHermesc.cmake")

Expand Down Expand Up @@ -71,26 +68,27 @@ Pod::Spec.new do |spec|
}

if source[:git] then
hermes_utils_path = "#{react_native_path}/sdks/hermes-engine/utils"
spec.prepare_command = <<-EOS
# When true, debug build will be used.
# See `build-apple-framework.sh` for details
export RELEASE_VERSION="#{version}"
export IOS_DEPLOYMENT_TARGET="#{spec.deployment_target('ios')}"
export MAC_DEPLOYMENT_TARGET="#{spec.deployment_target('osx')}"
BUILD_TYPE=#{HermesHelper::BUILD_TYPE == :debug ? "Debug" : "Release"}
export BUILD_TYPE=#{HermesHelper::BUILD_TYPE == :debug ? "Debug" : "Release"}
# Set HERMES_OVERRIDE_HERMESC_PATH if pre-built HermesC is available
#{File.exist?(import_hermesc_file) ? "export HERMES_OVERRIDE_HERMESC_PATH=#{import_hermesc_file}" : ""}
#{File.exist?(import_hermesc_file) ? "echo \"Overriding HermesC path...\"" : ""}
# Build iOS framework
$REACT_NATIVE_PATH/sdks/hermes-engine/utils/build-ios-framework.sh
#{hermes_utils_path}/build-ios-framework.sh
# Build Mac framework
$REACT_NATIVE_PATH/sdks/hermes-engine/utils/build-mac-framework.sh
#{hermes_utils_path}/build-mac-framework.sh
EOS
end
end

0 comments on commit 46bc854

Please sign in to comment.