Update React.podspec

Changes weren't merged back from internal.
This commit is contained in:
Alexsander Akers 2015-03-29 17:33:25 +01:00
parent d63c1a3c47
commit f3cd27cf48

View File

@ -3,75 +3,90 @@ Pod::Spec.new do |s|
s.version = "0.3.1" s.version = "0.3.1"
s.summary = "Build high quality mobile apps using React." s.summary = "Build high quality mobile apps using React."
s.description = <<-DESC s.description = <<-DESC
React Native apps are built using the React JS framework, React Native apps are built using the React JS
and render directly to native UIKit elements using a fully framework, and render directly to native UIKit
asynchronous architecture. There is no browser and no HTML. elements using a fully asynchronous architecture.
We have picked what we think is the best set of features from There is no browser and no HTML. We have picked what
these and other technologies to build what we hope to become we think is the best set of features from these and
the best product development framework available, with an other technologies to build what we hope to become
emphasis on iteration speed, developer delight, continuity the best product development framework available,
of technology, and absolutely beautiful and fast products with an emphasis on iteration speed, developer
with no compromises in quality or capability. delight, continuity of technology, and absolutely
beautiful and fast products with no compromises in
quality or capability.
DESC DESC
s.homepage = "http://facebook.github.io/react-native/" s.homepage = "http://facebook.github.io/react-native/"
s.license = "BSD" s.license = "BSD"
s.author = "Facebook" s.author = "Facebook"
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/facebook/react-native.git", :tag => "v#{s.version}" } s.source = { :git => "https://github.com/facebook/react-native.git", :tag => "v#{s.version}" }
s.source_files = "React/**/*.{c,h,m}" s.default_subspec = 'Core'
s.resources = "Resources/*.png"
s.preserve_paths = "cli.js", "Libraries/**/*.js", "lint", "linter.js", "node_modules", "package.json", "packager", "PATENTS", "react-native-cli"
s.exclude_files = "**/__tests__/*", "IntegrationTests/*"
s.frameworks = "JavaScriptCore"
s.requires_arc = true s.requires_arc = true
s.platform = :ios, "7.0"
s.prepare_command = 'npm install' s.prepare_command = 'npm install'
s.preserve_paths = "cli.js", "Libraries/**/*.js", "lint", "linter.js", "node_modules", "package.json", "packager", "PATENTS", "react-native-cli"
s.subspec 'Core' do |ss|
ss.source_files = "React/**/*.{c,h,m}"
ss.exclude_files = "**/__tests__/*", "IntegrationTests/*"
ss.frameworks = "JavaScriptCore"
end
s.subspec 'RCTActionSheet' do |ss| s.subspec 'RCTActionSheet' do |ss|
ss.dependency 'React/Core'
ss.source_files = "Libraries/ActionSheetIOS/*.{h,m}" ss.source_files = "Libraries/ActionSheetIOS/*.{h,m}"
ss.preserve_paths = "Libraries/ActionSheetIOS/*.js" ss.preserve_paths = "Libraries/ActionSheetIOS/*.js"
end end
s.subspec 'RCTAdSupport' do |ss| s.subspec 'RCTAdSupport' do |ss|
ss.source_files = "Libraries/RCTAdSupport/*.{h,m}" ss.dependency 'React/Core'
ss.preserve_paths = "Libraries/RCTAdSupport/*.js" ss.source_files = "Libraries/AdSupport/*.{h,m}"
ss.preserve_paths = "Libraries/AdSupport/*.js"
end end
s.subspec 'RCTAnimation' do |ss| s.subspec 'RCTAnimation' do |ss|
ss.dependency 'React/Core'
ss.source_files = "Libraries/Animation/*.{h,m}" ss.source_files = "Libraries/Animation/*.{h,m}"
ss.preserve_paths = "Libraries/Animation/*.js" ss.preserve_paths = "Libraries/Animation/*.js"
end end
s.subspec 'RCTGeolocation' do |ss| s.subspec 'RCTGeolocation' do |ss|
ss.dependency 'React/Core'
ss.source_files = "Libraries/Geolocation/*.{h,m}" ss.source_files = "Libraries/Geolocation/*.{h,m}"
ss.preserve_paths = "Libraries/Geolocation/*.js" ss.preserve_paths = "Libraries/Geolocation/*.js"
end end
s.subspec 'RCTImage' do |ss| s.subspec 'RCTImage' do |ss|
ss.dependency 'React/Core'
ss.source_files = "Libraries/Image/*.{h,m}" ss.source_files = "Libraries/Image/*.{h,m}"
ss.preserve_paths = "Libraries/Image/*.js" ss.preserve_paths = "Libraries/Image/*.js"
end end
s.subspec 'RCTNetwork' do |ss| s.subspec 'RCTNetwork' do |ss|
ss.dependency 'React/Core'
ss.source_files = "Libraries/Network/*.{h,m}" ss.source_files = "Libraries/Network/*.{h,m}"
ss.preserve_paths = "Libraries/Network/*.js" ss.preserve_paths = "Libraries/Network/*.js"
end end
s.subspec 'RCTPushNotification' do |ss| s.subspec 'RCTPushNotification' do |ss|
ss.dependency 'React/Core'
ss.source_files = "Libraries/PushNotificationIOS/*.{h,m}" ss.source_files = "Libraries/PushNotificationIOS/*.{h,m}"
ss.preserve_paths = "Libraries/PushNotificationIOS/*.js" ss.preserve_paths = "Libraries/PushNotificationIOS/*.js"
end end
s.subspec 'RCTWebSocketDebugger' do |ss| s.subspec 'RCTWebSocketDebugger' do |ss|
ss.source_files = "Libraries/RCTWebSocketDebugger/*.{h,m}"
ss.libraries = 'icucore' ss.libraries = 'icucore'
ss.dependency 'React/Core'
ss.source_files = "Libraries/RCTWebSocketDebugger/*.{h,m}"
end end
s.subspec 'RCTText' do |ss| s.subspec 'RCTText' do |ss|
ss.dependency 'React/Core'
ss.source_files = "Libraries/Text/*.{h,m}" ss.source_files = "Libraries/Text/*.{h,m}"
ss.preserve_paths = "Libraries/Text/*.js" ss.preserve_paths = "Libraries/Text/*.js"
end end
s.subspec 'RCTVibration' do |ss| s.subspec 'RCTVibration' do |ss|
ss.dependency 'React/Core'
ss.source_files = "Libraries/Vibration/*.{h,m}" ss.source_files = "Libraries/Vibration/*.{h,m}"
ss.preserve_paths = "Libraries/Vibration/*.js" ss.preserve_paths = "Libraries/Vibration/*.js"
end end