Files
react-native/React.podspec
T
Sunny Luo b50b7e3a19 Update React.podspec to require cocoapods >= 1.10.1 (#31134)
Summary:
According to https://github.com/facebook/react-native/issues/30922#issuecomment-778700328
Cocoapods 1.10.1 is required to compile iOS deps (OpenSSL).

Fixes https://github.com/facebook/react-native/issues/30922#issuecomment-778700328

Changelog:
[iOS][Changed] - Update React.podspec to require cocoapods >= 1.10.1

Pull Request resolved: https://github.com/facebook/react-native/pull/31134

Reviewed By: fkgozali

Differential Revision: D27447225

Pulled By: hramos

fbshipit-source-id: 3429250597e3eff58272dc880dbc3e7c38dcb70e
2021-03-31 12:49:40 -07:00

57 lines
2.5 KiB
Ruby
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
version = package['version']
source = { :git => 'https://github.com/facebook/react-native.git' }
if version == '1000.0.0'
# This is an unpublished version, use the latest commit hash of the react-native repo, which were presumably in.
source[:commit] = `git rev-parse HEAD`.strip
else
source[:tag] = "v#{version}"
end
Pod::Spec.new do |s|
s.name = "React"
s.version = version
s.summary = package["description"]
s.description = <<-DESC
React Native apps are built using the React JS
framework, and render directly to native UIKit
elements using a fully asynchronous architecture.
There is no browser and no HTML. We have picked what
we think is the best set of features from these and
other technologies to build what we hope to become
the best product development framework available,
with an emphasis on iteration speed, developer
delight, continuity of technology, and absolutely
beautiful and fast products with no compromises in
quality or capability.
DESC
s.homepage = "https://reactnative.dev/"
s.license = package["license"]
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "11.0" }
s.source = source
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
s.cocoapods_version = ">= 1.10.1"
s.dependency "React-Core", version
s.dependency "React-Core/DevSupport", version
s.dependency "React-Core/RCTWebSocket", version
s.dependency "React-RCTActionSheet", version
s.dependency "React-RCTAnimation", version
s.dependency "React-RCTBlob", version
s.dependency "React-RCTImage", version
s.dependency "React-RCTLinking", version
s.dependency "React-RCTNetwork", version
s.dependency "React-RCTSettings", version
s.dependency "React-RCTText", version
s.dependency "React-RCTVibration", version
end