From 59748ce635afc62c39eccccfabf8152045303756 Mon Sep 17 00:00:00 2001 From: Olivier Chalet Date: Mon, 8 Jan 2024 11:17:25 +0000 Subject: [PATCH] US1782181: patch Boost pod.spec while issue is being fixed - See Boost issue - https://github.com/boostorg/boost/issues/843 - See temporary workaround proposed by Facebook - https://github.com/facebook/react-native/issues/42180 --- demo-app/bitrise.yml | 5 +++++ demo-app/scripts/ci/patch-boost-podspec.sh | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 demo-app/scripts/ci/patch-boost-podspec.sh diff --git a/demo-app/bitrise.yml b/demo-app/bitrise.yml index eea1792..10ebf68 100644 --- a/demo-app/bitrise.yml +++ b/demo-app/bitrise.yml @@ -79,6 +79,11 @@ workflows: inputs: - command: ls - workdir: $BITRISE_SOURCE_DIR/demo-app/ + - script@1.2: + title: "Patch Boost podspec" + inputs: + - working_dir: $BITRISE_SOURCE_DIR/demo-app/ + - content: ./scripts/ci/patch-boost-podspec.sh - cocoapods-install@2: title: "Install pods for iOS Bridge SDK" inputs: diff --git a/demo-app/scripts/ci/patch-boost-podspec.sh b/demo-app/scripts/ci/patch-boost-podspec.sh new file mode 100755 index 0000000..ca4c51a --- /dev/null +++ b/demo-app/scripts/ci/patch-boost-podspec.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# This script is used to patch an issue during the installation of the Boost pod dependency +# See Boost issue - https://github.com/boostorg/boost/issues/843 +# Temporary workaround proposed by Facebook - https://github.com/facebook/react-native/issues/42180 + +# replacing https://boostorg.jfrog.io/artifactory/main by https://archives.boost.io +# and creating temp file +cat ./node_modules/react-native/third-party-podspecs/boost.podspec | sed s/boostorg.jfrog.io\\/artifactory\\/main/archives.boost.io/ > node_modules/react-native/third-party-podspecs/temp + +# overwrite boost.podspec file +mv node_modules/react-native/third-party-podspecs/temp node_modules/react-native/third-party-podspecs/boost.podspec