Skip to content

Commit

Permalink
Apply fix to download boost (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooj-stripe authored Jan 27, 2025
1 parent a733a85 commit 37d9b28
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# Apply fix found here
# https://github.com/boostorg/boost/issues/996#issuecomment-2574671532
def find_and_replace_boost_url
pod_spec = "../node_modules/react-native/third-party-podspecs/boost.podspec"
puts "Debug: Starting boost URL replacement"
if File.exist?(pod_spec)
puts "Debug: Found boost.podspec"
spec_content = File.read(pod_spec)
spec_content.gsub!(
'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2',
'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2'
)
File.write(pod_spec, spec_content)
puts "Debug: Updated boost.podspec"
end
end

find_and_replace_boost_url

platform :ios, '13.0'

install! 'cocoapods', deterministic_uuids: false
Expand Down
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
boost: a7c83b31436843459a1961bfd74b96033dc77234
boost: 9fa78656d705f55b1220151d997e57e2a3f2cde0
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
FBLazyVector: 6fab494fa11340bd4206edaebed07279a6bafad4
FBReactNativeSpec: 76d7b03876b0ad0b86bc5c84d23af8e64db8e096
Expand Down Expand Up @@ -522,6 +522,6 @@ SPEC CHECKSUMS:
StripeUICore: b59aa9c9e202b6a03a556c3519eff578274f7598
Yoga: 8a90b50af67eaa9fe94fd03e550bfeab06096873

PODFILE CHECKSUM: 7b4a5e954edfeed0967520f79be9e773f07d8266
PODFILE CHECKSUM: 9a06a540a1ac4748de4c69289cd64197943e34f7

COCOAPODS: 1.16.2

0 comments on commit 37d9b28

Please sign in to comment.