Skip to content

Commit 4089383

Browse files
committed
Edit hermes-engine.podspec to remove path before dash
1 parent 44744b2 commit 4089383

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

packages/react-native/sdks/hermes-engine/hermes-engine.podspec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ end
2020

2121
# package.json
2222
package = JSON.parse(File.read(File.join(react_native_path, "package.json")))
23-
version = package['version']
23+
24+
# We want to use the version without the -wanderlog.X suffix:
25+
# For example, if the version is 0.81.5-wanderlog.1, we want to use `0.81.5`.
26+
#
27+
# This is because we haven't modified Hermes, and it's much faster to just use
28+
# the prebuilt original version.
29+
version = package['version'].split('-').first
2430

2531
source_type = hermes_source_type(version, react_native_path)
2632
source = podspec_source(source_type, version, react_native_path)

0 commit comments

Comments
 (0)