Skip to content

Commit f3cd27c

Browse files
committed
Update React.podspec
Changes weren't merged back from internal.
1 parent d63c1a3 commit f3cd27c

1 file changed

Lines changed: 60 additions & 45 deletions

File tree

React.podspec

Lines changed: 60 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,93 @@
11
Pod::Spec.new do |s|
2-
s.name = "React"
3-
s.version = "0.3.1"
4-
s.summary = "Build high quality mobile apps using React."
5-
s.description= <<-DESC
6-
React Native apps are built using the React JS framework,
7-
and render directly to native UIKit elements using a fully
8-
asynchronous architecture. There is no browser and no HTML.
9-
We have picked what we think is the best set of features from
10-
these and other technologies to build what we hope to become
11-
the best product development framework available, with an
12-
emphasis on iteration speed, developer delight, continuity
13-
of technology, and absolutely beautiful and fast products
14-
with no compromises in quality or capability.
15-
DESC
16-
s.homepage = "http://facebook.github.io/react-native/"
17-
s.license = "BSD"
18-
s.author = "Facebook"
19-
s.platform = :ios, "7.0"
20-
s.source = { :git => "https://github.com/facebook/react-native.git", :tag => "v#{s.version}" }
21-
s.source_files = "React/**/*.{c,h,m}"
22-
s.resources = "Resources/*.png"
23-
s.preserve_paths = "cli.js", "Libraries/**/*.js", "lint", "linter.js", "node_modules", "package.json", "packager", "PATENTS", "react-native-cli"
24-
s.exclude_files = "**/__tests__/*", "IntegrationTests/*"
25-
s.frameworks = "JavaScriptCore"
26-
s.requires_arc = true
27-
s.prepare_command = 'npm install'
2+
s.name = "React"
3+
s.version = "0.3.1"
4+
s.summary = "Build high quality mobile apps using React."
5+
s.description = <<-DESC
6+
React Native apps are built using the React JS
7+
framework, and render directly to native UIKit
8+
elements using a fully asynchronous architecture.
9+
There is no browser and no HTML. We have picked what
10+
we think is the best set of features from these and
11+
other technologies to build what we hope to become
12+
the best product development framework available,
13+
with an emphasis on iteration speed, developer
14+
delight, continuity of technology, and absolutely
15+
beautiful and fast products with no compromises in
16+
quality or capability.
17+
DESC
18+
s.homepage = "http://facebook.github.io/react-native/"
19+
s.license = "BSD"
20+
s.author = "Facebook"
21+
s.source = { :git => "https://github.com/facebook/react-native.git", :tag => "v#{s.version}" }
22+
s.default_subspec = 'Core'
23+
s.requires_arc = true
24+
s.platform = :ios, "7.0"
25+
s.prepare_command = 'npm install'
26+
s.preserve_paths = "cli.js", "Libraries/**/*.js", "lint", "linter.js", "node_modules", "package.json", "packager", "PATENTS", "react-native-cli"
27+
28+
s.subspec 'Core' do |ss|
29+
ss.source_files = "React/**/*.{c,h,m}"
30+
ss.exclude_files = "**/__tests__/*", "IntegrationTests/*"
31+
ss.frameworks = "JavaScriptCore"
32+
end
2833

2934
s.subspec 'RCTActionSheet' do |ss|
30-
ss.source_files = "Libraries/ActionSheetIOS/*.{h,m}"
35+
ss.dependency 'React/Core'
36+
ss.source_files = "Libraries/ActionSheetIOS/*.{h,m}"
3137
ss.preserve_paths = "Libraries/ActionSheetIOS/*.js"
3238
end
3339

3440
s.subspec 'RCTAdSupport' do |ss|
35-
ss.source_files = "Libraries/RCTAdSupport/*.{h,m}"
36-
ss.preserve_paths = "Libraries/RCTAdSupport/*.js"
41+
ss.dependency 'React/Core'
42+
ss.source_files = "Libraries/AdSupport/*.{h,m}"
43+
ss.preserve_paths = "Libraries/AdSupport/*.js"
3744
end
3845

3946
s.subspec 'RCTAnimation' do |ss|
40-
ss.source_files = "Libraries/Animation/*.{h,m}"
41-
ss.preserve_paths = "Libraries/Animation/*.js"
47+
ss.dependency 'React/Core'
48+
ss.source_files = "Libraries/Animation/*.{h,m}"
49+
ss.preserve_paths = "Libraries/Animation/*.js"
4250
end
4351

4452
s.subspec 'RCTGeolocation' do |ss|
45-
ss.source_files = "Libraries/Geolocation/*.{h,m}"
46-
ss.preserve_paths = "Libraries/Geolocation/*.js"
53+
ss.dependency 'React/Core'
54+
ss.source_files = "Libraries/Geolocation/*.{h,m}"
55+
ss.preserve_paths = "Libraries/Geolocation/*.js"
4756
end
4857

4958
s.subspec 'RCTImage' do |ss|
50-
ss.source_files = "Libraries/Image/*.{h,m}"
51-
ss.preserve_paths = "Libraries/Image/*.js"
59+
ss.dependency 'React/Core'
60+
ss.source_files = "Libraries/Image/*.{h,m}"
61+
ss.preserve_paths = "Libraries/Image/*.js"
5262
end
5363

5464
s.subspec 'RCTNetwork' do |ss|
55-
ss.source_files = "Libraries/Network/*.{h,m}"
56-
ss.preserve_paths = "Libraries/Network/*.js"
65+
ss.dependency 'React/Core'
66+
ss.source_files = "Libraries/Network/*.{h,m}"
67+
ss.preserve_paths = "Libraries/Network/*.js"
5768
end
5869

5970
s.subspec 'RCTPushNotification' do |ss|
60-
ss.source_files = "Libraries/PushNotificationIOS/*.{h,m}"
61-
ss.preserve_paths = "Libraries/PushNotificationIOS/*.js"
71+
ss.dependency 'React/Core'
72+
ss.source_files = "Libraries/PushNotificationIOS/*.{h,m}"
73+
ss.preserve_paths = "Libraries/PushNotificationIOS/*.js"
6274
end
6375

6476
s.subspec 'RCTWebSocketDebugger' do |ss|
65-
ss.source_files = "Libraries/RCTWebSocketDebugger/*.{h,m}"
66-
ss.libraries = 'icucore'
77+
ss.libraries = 'icucore'
78+
ss.dependency 'React/Core'
79+
ss.source_files = "Libraries/RCTWebSocketDebugger/*.{h,m}"
6780
end
6881

6982
s.subspec 'RCTText' do |ss|
70-
ss.source_files = "Libraries/Text/*.{h,m}"
71-
ss.preserve_paths = "Libraries/Text/*.js"
83+
ss.dependency 'React/Core'
84+
ss.source_files = "Libraries/Text/*.{h,m}"
85+
ss.preserve_paths = "Libraries/Text/*.js"
7286
end
7387

7488
s.subspec 'RCTVibration' do |ss|
75-
ss.source_files = "Libraries/Vibration/*.{h,m}"
76-
ss.preserve_paths = "Libraries/Vibration/*.js"
89+
ss.dependency 'React/Core'
90+
ss.source_files = "Libraries/Vibration/*.{h,m}"
91+
ss.preserve_paths = "Libraries/Vibration/*.js"
7792
end
7893
end

0 commit comments

Comments
 (0)