2017-02-07 00:16:46 +00:00
|
|
|
require "json"
|
2016-03-29 20:23:52 +00:00
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
2016-03-29 20:23:52 +00:00
|
|
|
|
2015-03-26 13:32:01 +00:00
|
|
|
Pod::Spec.new do |s|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.name = "React"
|
|
|
|
s.version = package["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 = "http://facebook.github.io/react-native/"
|
|
|
|
s.license = package["license"]
|
|
|
|
s.author = "Facebook"
|
|
|
|
s.source = { :git => "https://github.com/facebook/react-native.git", :tag => "v#{s.version}" }
|
|
|
|
s.default_subspec = "Core"
|
|
|
|
s.requires_arc = true
|
|
|
|
s.platform = :ios, "8.0"
|
|
|
|
s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++14" }
|
|
|
|
s.preserve_paths = "package.json", "LICENSE", "LICENSE-CustomComponents", "PATENTS"
|
|
|
|
s.cocoapods_version = ">= 1.2.0"
|
2015-04-01 02:01:48 +00:00
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "Core" do |ss|
|
|
|
|
ss.dependency "Yoga", "#{package["version"]}.React"
|
|
|
|
ss.dependency "React/cxxreact"
|
|
|
|
ss.source_files = "React/**/*.{c,h,m,mm,S}"
|
|
|
|
ss.exclude_files = "**/__tests__/*", "IntegrationTests/*", "React/**/RCTTVView.*", "ReactCommon/yoga/*", "React/Cxx*/*"
|
|
|
|
ss.framework = "JavaScriptCore"
|
|
|
|
ss.libraries = "stdc++"
|
2016-11-21 17:02:09 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "tvOS" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "React/**/RCTTVView.{h, m}"
|
2017-01-07 01:09:39 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "jschelpers" do |ss|
|
|
|
|
ss.source_files = "ReactCommon/jschelpers/{JavaScriptCore,JSCWrapper}.{cpp,h}"
|
|
|
|
ss.private_header_files = "ReactCommon/jschelpers/{JavaScriptCore,JSCWrapper}.h"
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "$(PODS_TARGET_SRCROOT)/ReactCommon" }
|
|
|
|
ss.framework = "JavaScriptCore"
|
2016-11-23 19:33:44 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "cxxreact" do |ss|
|
|
|
|
ss.dependency "React/jschelpers"
|
|
|
|
ss.source_files = "ReactCommon/cxxreact/{JSBundleType,oss-compat-util}.{cpp,h}"
|
|
|
|
ss.private_header_files = "ReactCommon/cxxreact/{JSBundleType,oss-compat-util}.h"
|
|
|
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "$(PODS_TARGET_SRCROOT)/ReactCommon" }
|
2016-11-23 19:33:44 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "ART" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "Libraries/ART/**/*.{h,m}"
|
2015-04-01 02:01:48 +00:00
|
|
|
end
|
2015-03-26 13:32:01 +00:00
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTActionSheet" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "Libraries/ActionSheetIOS/*.{h,m}"
|
2015-05-13 17:07:59 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTAdSupport" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "Libraries/AdSupport/*.{h,m}"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTAnimation" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "Libraries/NativeAnimation/{Drivers/*,Nodes/*,*}.{h,m}"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTCameraRoll" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.dependency "React/RCTImage"
|
|
|
|
ss.source_files = "Libraries/CameraRoll/*.{h,m}"
|
2016-06-30 08:40:57 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTGeolocation" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "Libraries/Geolocation/*.{h,m}"
|
2015-11-19 09:26:58 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTImage" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.dependency "React/RCTNetwork"
|
|
|
|
ss.source_files = "Libraries/Image/*.{h,m}"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTNetwork" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "Libraries/Network/*.{h,m,mm}"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTPushNotification" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "Libraries/PushNotificationIOS/*.{h,m}"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTSettings" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "Libraries/Settings/*.{h,m}"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTText" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "Libraries/Text/*.{h,m}"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTVibration" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "Libraries/Vibration/*.{h,m}"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTWebSocket" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "Libraries/WebSocket/*.{h,m}"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
2015-05-14 11:07:07 +00:00
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTLinkingIOS" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "Libraries/LinkingIOS/*.{h,m}"
|
2015-05-14 11:07:07 +00:00
|
|
|
end
|
2015-06-11 17:46:57 +00:00
|
|
|
|
2017-02-07 00:16:46 +00:00
|
|
|
s.subspec "RCTTest" do |ss|
|
|
|
|
ss.dependency "React/Core"
|
|
|
|
ss.source_files = "Libraries/RCTTest/**/*.{h,m}"
|
|
|
|
ss.frameworks = "XCTest"
|
2015-10-13 14:38:11 +00:00
|
|
|
end
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|