2016-03-29 20:23:52 +00:00
|
|
|
require 'json'
|
|
|
|
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
|
|
|
2015-03-26 13:32:01 +00:00
|
|
|
Pod::Spec.new do |s|
|
2015-04-01 02:01:48 +00:00
|
|
|
s.name = "React"
|
2016-03-29 20:23:52 +00:00
|
|
|
s.version = package['version']
|
|
|
|
s.summary = package['description']
|
2015-04-01 02:01:48 +00:00
|
|
|
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/"
|
2016-03-29 20:23:52 +00:00
|
|
|
s.license = package['license']
|
2015-04-01 02:01:48 +00:00
|
|
|
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, "7.0"
|
|
|
|
s.preserve_paths = "cli.js", "Libraries/**/*.js", "lint", "linter.js", "node_modules", "package.json", "packager", "PATENTS", "react-native-cli"
|
|
|
|
|
|
|
|
s.subspec 'Core' do |ss|
|
2016-07-26 18:54:09 +00:00
|
|
|
ss.dependency 'React/CSSLayout'
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.source_files = "React/**/*.{c,h,m,mm,S}"
|
2016-07-26 18:54:09 +00:00
|
|
|
ss.exclude_files = "**/__tests__/*", "IntegrationTests/*", "React/CSSLayout/*"
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.frameworks = "JavaScriptCore"
|
|
|
|
ss.libraries = "stdc++"
|
|
|
|
ss.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => "c++14" }
|
2015-04-01 02:01:48 +00:00
|
|
|
end
|
2015-03-26 13:32:01 +00:00
|
|
|
|
2015-05-13 17:07:59 +00:00
|
|
|
s.subspec 'ART' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.source_files = "Libraries/ART/**/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/ART/**/*.js"
|
2015-05-13 17:07:59 +00:00
|
|
|
end
|
|
|
|
|
2016-07-26 18:54:09 +00:00
|
|
|
s.subspec 'CSSLayout' do |ss|
|
|
|
|
ss.source_files = "React/CSSLayout/**/*.{c,h}"
|
|
|
|
ss.header_mappings_dir = "React"
|
|
|
|
end
|
|
|
|
|
2015-03-26 13:32:01 +00:00
|
|
|
s.subspec 'RCTActionSheet' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.source_files = "Libraries/ActionSheetIOS/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/ActionSheetIOS/*.js"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'RCTAdSupport' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.source_files = "Libraries/AdSupport/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/AdSupport/*.js"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
2016-06-30 08:40:57 +00:00
|
|
|
s.subspec 'RCTAnimation' do |ss|
|
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.source_files = "Libraries/NativeAnimation/{Nodes/*,*}.{h,m}"
|
|
|
|
end
|
|
|
|
|
2015-11-19 09:26:58 +00:00
|
|
|
s.subspec 'RCTCameraRoll' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.dependency 'React/RCTImage'
|
|
|
|
ss.source_files = "Libraries/CameraRoll/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/CameraRoll/*.js"
|
2015-11-19 09:26:58 +00:00
|
|
|
end
|
|
|
|
|
2015-03-26 13:32:01 +00:00
|
|
|
s.subspec 'RCTGeolocation' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.source_files = "Libraries/Geolocation/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/Geolocation/*.js"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'RCTImage' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.dependency 'React/RCTNetwork'
|
|
|
|
ss.source_files = "Libraries/Image/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/Image/*.js"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'RCTNetwork' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.source_files = "Libraries/Network/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/Network/*.js"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'RCTPushNotification' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.source_files = "Libraries/PushNotificationIOS/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/PushNotificationIOS/*.js"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
2015-05-14 11:07:07 +00:00
|
|
|
s.subspec 'RCTSettings' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.source_files = "Libraries/Settings/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/Settings/*.js"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'RCTText' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.source_files = "Libraries/Text/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/Text/*.js"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
s.subspec 'RCTVibration' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.source_files = "Libraries/Vibration/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/Vibration/*.js"
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|
2015-05-14 11:07:07 +00:00
|
|
|
|
2015-05-14 16:28:09 +00:00
|
|
|
s.subspec 'RCTWebSocket' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.source_files = "Libraries/WebSocket/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/WebSocket/*.js"
|
2015-05-14 11:07:07 +00:00
|
|
|
end
|
2015-06-11 17:46:57 +00:00
|
|
|
|
|
|
|
s.subspec 'RCTLinkingIOS' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.source_files = "Libraries/LinkingIOS/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/LinkingIOS/*.js"
|
2015-06-11 17:46:57 +00:00
|
|
|
end
|
2015-10-29 09:10:10 +00:00
|
|
|
|
2015-10-13 14:38:11 +00:00
|
|
|
s.subspec 'RCTTest' do |ss|
|
2016-05-27 20:55:04 +00:00
|
|
|
ss.dependency 'React/Core'
|
|
|
|
ss.source_files = "Libraries/RCTTest/**/*.{h,m}"
|
|
|
|
ss.preserve_paths = "Libraries/RCTTest/**/*.js"
|
|
|
|
ss.frameworks = "XCTest"
|
2015-10-13 14:38:11 +00:00
|
|
|
end
|
2015-03-26 13:32:01 +00:00
|
|
|
end
|