|
1 | 1 | 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 |
28 | 33 |
|
29 | 34 | 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}" |
31 | 37 | ss.preserve_paths = "Libraries/ActionSheetIOS/*.js" |
32 | 38 | end |
33 | 39 |
|
34 | 40 | 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" |
37 | 44 | end |
38 | 45 |
|
39 | 46 | 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" |
42 | 50 | end |
43 | 51 |
|
44 | 52 | 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" |
47 | 56 | end |
48 | 57 |
|
49 | 58 | 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" |
52 | 62 | end |
53 | 63 |
|
54 | 64 | 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" |
57 | 68 | end |
58 | 69 |
|
59 | 70 | 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" |
62 | 74 | end |
63 | 75 |
|
64 | 76 | 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}" |
67 | 80 | end |
68 | 81 |
|
69 | 82 | 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" |
72 | 86 | end |
73 | 87 |
|
74 | 88 | 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" |
77 | 92 | end |
78 | 93 | end |
0 commit comments