Revert "Remove 's.static_framework = true' requirement for podspec (#25816)"

This reverts commit ca9e108110.
This commit is contained in:
grabbou
2019-08-22 08:59:52 +02:00
parent f827ea90b0
commit 612c033918
32 changed files with 162 additions and 59 deletions
+37
View File
@@ -0,0 +1,37 @@
# coding: utf-8
# 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 we’re presumably in.
source[:commit] = `git rev-parse HEAD`.strip
else
source[:tag] = "v#{version}"
end
Pod::Spec.new do |s|
s.name = "React-DevSupport"
s.version = version
s.summary = "-" # TODO
s.homepage = "http://facebook.github.io/react-native/"
s.license = package["license"]
s.author = "Facebook, Inc. and its affiliates"
s.platforms = { :ios => "9.0", :tvos => "9.2" }
s.source = source
s.source_files = "DevSupport/*.{mm,m}",
"Inspector/*.{mm,m}"
s.header_dir = "DevSupport"
s.static_framework = true
s.dependency "React-Core/DevSupportHeaders", version
s.dependency "React-RCTWebSocket", version
s.dependency "React-jsinspector", version
end