mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: At OEBB we currently facing an issue we're not able to use our mirrored git repositories for third-party podspecs. This is due to the fact podspecs contain hardcoded git repository urls. With this change we could specify urls to our mirrored git repositories. ## Changelog: [IOS] [ADDED] Enable third-party podspec sources to be fetched from mirrored git repositories Pull Request resolved: https://github.com/facebook/react-native/pull/45566 Test Plan: ```bash # Define env vars for git mirrors export FMT_GIT_URL="https://my-git-host.com/my-mirrored-repo.git" export GLOG_GIT_URL="https://my-git-host.com/my-mirrored-repo.git" export FOLLY_GIT_URL="https://my-git-host.com/my-mirrored-repo.git" export DOUBLE_CONVERSION_GIT_URL="https://my-git-host.com/my-mirrored-repo.git" export BOOST_GIT_URL="https://my-git-host.com/my-mirrored-repo.git" # Pod install command run from ios app folder pod install ``` Reviewed By: cortinico Differential Revision: D61209204 Pulled By: cipolleschi fbshipit-source-id: b19f7b8262c860b5c4d553732da50c9bd0373397
31 lines
1020 B
Ruby
31 lines
1020 B
Ruby
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
boost_config = get_boost_config()
|
|
boost_git_url = boost_config[:git]
|
|
|
|
Pod::Spec.new do |spec|
|
|
spec.name = 'boost'
|
|
spec.version = '1.84.0'
|
|
spec.license = { :type => 'Boost Software License', :file => "LICENSE_1_0.txt" }
|
|
spec.homepage = 'http://www.boost.org'
|
|
spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.'
|
|
spec.authors = 'Rene Rivera'
|
|
spec.source = { :git => boost_git_url,
|
|
:tag => "v1.84.0" }
|
|
|
|
# Pinning to the same version as React.podspec.
|
|
spec.platforms = min_supported_versions
|
|
spec.requires_arc = false
|
|
spec.source_files = 'boost/**/*.{hpp,cpp}'
|
|
|
|
spec.module_name = 'boost'
|
|
spec.header_dir = 'boost'
|
|
spec.preserve_path = 'boost'
|
|
spec.header_mappings_dir = 'boost/boost'
|
|
|
|
spec.resource_bundles = {'boost_privacy' => 'boost/PrivacyInfo.xcprivacy'}
|
|
end
|