Skip to content

Commit 91aa831

Browse files
committed
fix: remove hard pinning of entire hermes v1 and kept only hermes compiler pinning in package.json
1 parent 8d46ead commit 91aa831

2 files changed

Lines changed: 8 additions & 26 deletions

File tree

ios/Podfile

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
source 'https://cdn.cocoapods.org/'
22

3-
# Sync hermes v1 version from package.json into react-native's SDK version files
4-
# so that iOS uses the same pinned version as the Android/npm resolution.
5-
require 'json'
6-
package_json = JSON.parse(File.read(File.join(__dir__, "../package.json")))
7-
hermes_v1_version = package_json.dig("overrides", "hermes-compiler")
8-
if hermes_v1_version
9-
rn_sdk_path = File.join(__dir__, "../node_modules/react-native/sdks")
10-
# Update version.properties (used by hermes-engine.podspec)
11-
version_props_path = File.join(rn_sdk_path, "hermes-engine", "version.properties")
12-
if File.exist?(version_props_path)
13-
content = File.read(version_props_path)
14-
File.write(version_props_path, content.gsub(/HERMES_V1_VERSION_NAME=.*/, "HERMES_V1_VERSION_NAME=#{hermes_v1_version}"))
15-
end
16-
# Update .hermesv1version (used as the CocoaPods cache-busting tag)
17-
hermesv1_tag_path = File.join(rn_sdk_path, ".hermesv1version")
18-
File.write(hermesv1_tag_path, "hermes-v#{hermes_v1_version}") if File.exist?(hermesv1_tag_path)
19-
end
20-
213
def node_require(script)
224
# Resolve script with node to allow for hoisting
235
require Pod::Executable.execute_command('node', ['-p',

ios/Podfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
PODS:
22
- FBLazyVector (0.84.1)
3-
- hermes-engine (250829098.0.16):
4-
- hermes-engine/Pre-built (= 250829098.0.16)
5-
- hermes-engine/Pre-built (250829098.0.16)
3+
- hermes-engine (250829098.0.9):
4+
- hermes-engine/Pre-built (= 250829098.0.9)
5+
- hermes-engine/Pre-built (250829098.0.9)
66
- IQKeyboardManager (6.5.19)
77
- libavif/core (0.11.1)
88
- libavif/libdav1d (0.11.1):
@@ -69,7 +69,7 @@ PODS:
6969
- ReactCommon/turbomodule/core
7070
- ReactNativeDependencies
7171
- Yoga
72-
- OpenSSL-Universal (3.6.0000)
72+
- OpenSSL-Universal (3.6.2000)
7373
- RCTDeprecation (0.84.1)
7474
- RCTRequired (0.84.1)
7575
- RCTSwiftUI (0.84.1)
@@ -2666,7 +2666,7 @@ EXTERNAL SOURCES:
26662666
:path: "../node_modules/react-native/Libraries/FBLazyVector"
26672667
hermes-engine:
26682668
:podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec"
2669-
:tag: hermes-v250829098.0.16
2669+
:tag: hermes-v250829098.0.9
26702670
MendixNative:
26712671
:path: "../node_modules/mendix-native"
26722672
op-sqlite:
@@ -2862,14 +2862,14 @@ EXTERNAL SOURCES:
28622862

28632863
SPEC CHECKSUMS:
28642864
FBLazyVector: e97c19a5a442429d1988f182a1940fb08df514da
2865-
hermes-engine: 69c996601e0d8f3e0568eaa317bfb9c13b5f5618
2865+
hermes-engine: 054cdf1294d0852c33cd980e7fcd94b4274ed8b3
28662866
IQKeyboardManager: c8665b3396bd0b79402b4c573eac345a31c7d485
28672867
libavif: 84bbb62fb232c3018d6f1bab79beea87e35de7b7
28682868
libdav1d: 23581a4d8ec811ff171ed5e2e05cd27bad64c39f
28692869
libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8
28702870
MendixNative: b0ea153b893ce40b90016f397e9a5acfe4444c33
28712871
op-sqlite: e9ef65bcf95a97863874cee87841425bb71c8396
2872-
OpenSSL-Universal: 9110d21982bb7e8b22a962b6db56a8aa805afde7
2872+
OpenSSL-Universal: ecee7b138fa75a74ecf00d7ffd248fb584739b9e
28732873
RCTDeprecation: af44b104091a34482596cd9bd7e8d90c4e9b4bd7
28742874
RCTRequired: bb77b070f75f53398ce43c0aaaa58337cebe2bf6
28752875
RCTSwiftUI: afc0a0a635860da1040a0b894bfd529da06d7810
@@ -2971,6 +2971,6 @@ SPEC CHECKSUMS:
29712971
SwiftAudioEx: f6aa653770f3a0d3851edaf8d834a30aee4a7646
29722972
Yoga: c0b3f2c7e8d3e327e450223a2414ca3fa296b9a2
29732973

2974-
PODFILE CHECKSUM: 09cf4c9bdbcffba8ca592025f48d96797828da8b
2974+
PODFILE CHECKSUM: 336902a926a1c6b0b4e426a1eeb85e04f7bbf783
29752975

29762976
COCOAPODS: 1.16.2

0 commit comments

Comments
 (0)