Skip to content

Commit 37d9b28

Browse files
authored
Apply fix to download boost (#1824)
1 parent a733a85 commit 37d9b28

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

example/ios/Podfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# Apply fix found here
2+
# https://github.com/boostorg/boost/issues/996#issuecomment-2574671532
3+
def find_and_replace_boost_url
4+
pod_spec = "../node_modules/react-native/third-party-podspecs/boost.podspec"
5+
puts "Debug: Starting boost URL replacement"
6+
if File.exist?(pod_spec)
7+
puts "Debug: Found boost.podspec"
8+
spec_content = File.read(pod_spec)
9+
spec_content.gsub!(
10+
'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2',
11+
'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2'
12+
)
13+
File.write(pod_spec, spec_content)
14+
puts "Debug: Updated boost.podspec"
15+
end
16+
end
17+
18+
find_and_replace_boost_url
19+
120
platform :ios, '13.0'
221

322
install! 'cocoapods', deterministic_uuids: false

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ EXTERNAL SOURCES:
475475
:path: "../node_modules/react-native/ReactCommon/yoga"
476476

477477
SPEC CHECKSUMS:
478-
boost: a7c83b31436843459a1961bfd74b96033dc77234
478+
boost: 9fa78656d705f55b1220151d997e57e2a3f2cde0
479479
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
480480
FBLazyVector: 6fab494fa11340bd4206edaebed07279a6bafad4
481481
FBReactNativeSpec: 76d7b03876b0ad0b86bc5c84d23af8e64db8e096
@@ -522,6 +522,6 @@ SPEC CHECKSUMS:
522522
StripeUICore: b59aa9c9e202b6a03a556c3519eff578274f7598
523523
Yoga: 8a90b50af67eaa9fe94fd03e550bfeab06096873
524524

525-
PODFILE CHECKSUM: 7b4a5e954edfeed0967520f79be9e773f07d8266
525+
PODFILE CHECKSUM: 9a06a540a1ac4748de4c69289cd64197943e34f7
526526

527527
COCOAPODS: 1.16.2

0 commit comments

Comments
 (0)