|
22 | 22 | package = JSON.parse(File.read(File.join(react_native_path, "package.json"))) |
23 | 23 | versionProperties = Hash[*File.read("version.properties").split(/[=\n]+/)] |
24 | 24 |
|
25 | | -if ENV['RCT_HERMES_V1_ENABLED'] == "0" |
26 | | - version = versionProperties['HERMES_VERSION_NAME'] |
27 | | -else |
28 | | - version = versionProperties['HERMES_V1_VERSION_NAME'] |
29 | | -end |
30 | | - |
31 | | -# Local monorepo build |
32 | | -# We don't want to build Hermes V1 from source |
33 | | -if ENV['RCT_HERMES_V1_ENABLED'] == "0" && package['version'] == "1000.0.0" then |
34 | | - hermesCompilerVersion = package['dependencies']['hermes-compiler'] |
35 | | - if hermesCompilerVersion != "0.0.0" then |
36 | | - version = hermesCompilerVersion |
37 | | - end |
38 | | -end |
| 25 | +version = versionProperties['HERMES_VERSION_NAME'] |
39 | 26 |
|
40 | 27 | source_type = hermes_source_type(version, react_native_path) |
41 | 28 | source = podspec_source(source_type, version, react_native_path) |
@@ -69,15 +56,7 @@ Pod::Spec.new do |spec| |
69 | 56 |
|
70 | 57 | spec.subspec 'Pre-built' do |ss| |
71 | 58 | ss.preserve_paths = ["destroot/bin/*"].concat(["**/*.{h,c,cpp}"]) |
72 | | - if ENV["RCT_HERMES_V1_ENABLED"] == "0" |
73 | | - ss.source_files = "destroot/include/hermes/**/*.h" |
74 | | - else |
75 | | - # Hermes v1 is shipping a jsi/hermes.h header which is imported by the hermes.h header |
76 | | - # and that file is not present in React Native's JSI |
77 | | - # (see https://github.com/facebook/react-native/tree/main/packages/react-native/ReactCommon/jsi/jsi/ where there is |
78 | | - # hermes-interface.h but not hermes.h) |
79 | | - ss.source_files = ["destroot/include/hermes/**/*.h", "destroot/include/jsi/hermes.h"] |
80 | | - end |
| 59 | + ss.source_files = ["destroot/include/hermes/**/*.h", "destroot/include/jsi/hermes.h"] |
81 | 60 | ss.header_mappings_dir = "destroot/include" |
82 | 61 | ss.ios.vendored_frameworks = "destroot/Library/Frameworks/universal/hermesvm.xcframework" |
83 | 62 | ss.visionos.vendored_frameworks = "destroot/Library/Frameworks/universal/hermesvm.xcframework" |
@@ -140,20 +119,6 @@ Pod::Spec.new do |spec| |
140 | 119 | ss.header_dir = 'hermes/Public' |
141 | 120 | end |
142 | 121 |
|
143 | | - if ENV['RCT_HERMES_V1_ENABLED'] == "0" |
144 | | - spec.subspec 'inspector' do |ss| |
145 | | - ss.source_files = '' |
146 | | - ss.public_header_files = 'API/hermes/inspector/*.h' |
147 | | - ss.header_dir = 'hermes/inspector' |
148 | | - end |
149 | | - |
150 | | - spec.subspec 'inspector_chrome' do |ss| |
151 | | - ss.source_files = '' |
152 | | - ss.public_header_files = 'API/hermes/inspector/chrome/*.h' |
153 | | - ss.header_dir = 'hermes/inspector/chrome' |
154 | | - end |
155 | | - end |
156 | | - |
157 | 122 | hermesc_path = "${PODS_ROOT}/hermes-engine/build_host_hermesc" |
158 | 123 |
|
159 | 124 | if ENV.has_key?('HERMES_OVERRIDE_HERMESC_PATH') && File.exist?(ENV['HERMES_OVERRIDE_HERMESC_PATH']) then |
|
0 commit comments