|
1 |
| -source 'https://github.com/react-native-community/react-native-tvos-podspecs.git' |
2 |
| -source 'https://github.com/CocoaPods/Specs.git' |
3 |
| - |
| 1 | +require_relative '../node_modules/react-native/scripts/react_native_pods' |
4 | 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
5 | 3 |
|
6 |
| -def add_flipper_pods!(versions = {}) |
7 |
| - versions['Flipper'] ||= '0.30.2' |
8 |
| - versions['DoubleConversion'] ||= '1.1.7' |
9 |
| - versions['Flipper-Folly'] ||= '~> 2.1' |
10 |
| - versions['Flipper-Glog'] ||= '0.3.6' |
11 |
| - versions['Flipper-PeerTalk'] ||= '~> 0.0.4' |
12 |
| - versions['Flipper-RSocket'] ||= '~> 1.0' |
13 |
| - |
14 |
| - pod 'FlipperKit', versions['Flipper'], :configuration => 'Debug' |
15 |
| - pod 'FlipperKit/FlipperKitLayoutPlugin', versions['Flipper'], :configuration => 'Debug' |
16 |
| - pod 'FlipperKit/SKIOSNetworkPlugin', versions['Flipper'], :configuration => 'Debug' |
17 |
| - pod 'FlipperKit/FlipperKitUserDefaultsPlugin', versions['Flipper'], :configuration => 'Debug' |
18 |
| - pod 'FlipperKit/FlipperKitReactPlugin', versions['Flipper'], :configuration => 'Debug' |
19 |
| - |
20 |
| - # List all transitive dependencies for FlipperKit pods |
21 |
| - # to avoid them being linked in Release builds |
22 |
| - pod 'Flipper', versions['Flipper'], :configuration => 'Debug' |
23 |
| - pod 'Flipper-DoubleConversion', versions['DoubleConversion'], :configuration => 'Debug' |
24 |
| - pod 'Flipper-Folly', versions['Flipper-Folly'], :configuration => 'Debug' |
25 |
| - pod 'Flipper-Glog', versions['Flipper-Glog'], :configuration => 'Debug' |
26 |
| - pod 'Flipper-PeerTalk', versions['Flipper-PeerTalk'], :configuration => 'Debug' |
27 |
| - pod 'Flipper-RSocket', versions['Flipper-RSocket'], :configuration => 'Debug' |
28 |
| - pod 'FlipperKit/Core', versions['Flipper'], :configuration => 'Debug' |
29 |
| - pod 'FlipperKit/CppBridge', versions['Flipper'], :configuration => 'Debug' |
30 |
| - pod 'FlipperKit/FBCxxFollyDynamicConvert', versions['Flipper'], :configuration => 'Debug' |
31 |
| - pod 'FlipperKit/FBDefines', versions['Flipper'], :configuration => 'Debug' |
32 |
| - pod 'FlipperKit/FKPortForwarding', versions['Flipper'], :configuration => 'Debug' |
33 |
| - pod 'FlipperKit/FlipperKitHighlightOverlay', versions['Flipper'], :configuration => 'Debug' |
34 |
| - pod 'FlipperKit/FlipperKitLayoutTextSearchable', versions['Flipper'], :configuration => 'Debug' |
35 |
| - pod 'FlipperKit/FlipperKitNetworkPlugin', versions['Flipper'], :configuration => 'Debug' |
36 |
| -end |
37 |
| - |
38 |
| -# Post Install processing for Flipper |
39 |
| -def flipper_post_install(installer) |
40 |
| - installer.pods_project.targets.each do |target| |
41 |
| - if target.name == 'YogaKit' |
42 |
| - target.build_configurations.each do |config| |
43 |
| - config.build_settings['SWIFT_VERSION'] = '4.1' |
44 |
| - end |
45 |
| - end |
46 |
| - end |
47 |
| -end |
| 4 | +source 'https://github.com/react-native-tvos/react-native-tvos-podspecs.git' |
| 5 | +source 'https://cdn.cocoapods.org/' |
48 | 6 |
|
49 | 7 | target 'ReactNavigationTVDemo' do
|
50 |
| - platform :ios, '9.0' |
51 |
| - # Pods for ReactNavigationTVDemo |
52 |
| - pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector" |
53 |
| - pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec" |
54 |
| - pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired" |
55 |
| - pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety" |
56 |
| - pod 'React', :path => '../node_modules/react-native/' |
57 |
| - pod 'React-Core', :path => '../node_modules/react-native/' |
58 |
| - pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules' |
59 |
| - pod 'React-Core/DevSupport', :path => '../node_modules/react-native/' |
60 |
| - pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' |
61 |
| - pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' |
62 |
| - pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' |
63 |
| - pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' |
64 |
| - pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' |
65 |
| - pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' |
66 |
| - pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' |
67 |
| - pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' |
68 |
| - pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' |
69 |
| - pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/' |
70 |
| - |
71 |
| - pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' |
72 |
| - pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' |
73 |
| - pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' |
74 |
| - pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' |
75 |
| - pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon" |
76 |
| - pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon" |
77 |
| - pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true |
78 |
| - |
79 |
| - pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' |
80 |
| - pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' |
81 |
| - pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' |
| 8 | + |
| 9 | + platform :ios, '10.0' |
| 10 | + |
| 11 | + config = use_native_modules! |
| 12 | + |
| 13 | + use_react_native!(:path => config["reactNativePath"]) |
| 14 | + |
| 15 | + use_flipper_tvos! |
| 16 | +# If you want to use Flipper only for iOS, you can replace the line above with |
| 17 | +# |
| 18 | +# use_flipper! |
| 19 | +# |
| 20 | +# to pick up newer Flipper pods used in RN core 0.63. |
| 21 | +# They have not yet been adapted to work in tvOS. |
| 22 | +# use_flipper_tvos! works for both iOS and tvOS. |
82 | 23 |
|
83 | 24 | target 'ReactNavigationTVDemoTests' do
|
84 | 25 | inherit! :complete
|
85 | 26 | # Pods for testing
|
86 | 27 | end
|
87 | 28 |
|
88 |
| - use_native_modules! |
89 |
| - |
90 |
| - # Enables Flipper. |
91 |
| - # |
92 |
| - # Note that if you have use_frameworks! enabled, Flipper will not work and |
93 |
| - # you should disable these next few lines. |
94 |
| - add_flipper_pods! |
95 | 29 | end
|
96 | 30 |
|
97 | 31 | target 'ReactNavigationTVDemo-tvOS' do
|
| 32 | + |
98 | 33 | platform :tvos, '12.0'
|
99 |
| - # Pods for ReactNavigationTVDemo-tvOS |
100 |
| - pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector" |
101 |
| - pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec" |
102 |
| - pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired" |
103 |
| - pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety" |
104 |
| - pod 'React', :path => '../node_modules/react-native/' |
105 |
| - pod 'React-Core', :path => '../node_modules/react-native/' |
106 |
| - pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules' |
107 |
| - pod 'React-Core/DevSupport', :path => '../node_modules/react-native/' |
108 |
| - pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' |
109 |
| - pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' |
110 |
| - pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' |
111 |
| - pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' |
112 |
| - pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' |
113 |
| - pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' |
114 |
| - pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' |
115 |
| - pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' |
116 |
| - pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' |
117 |
| - pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/' |
118 |
| - |
119 |
| - pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' |
120 |
| - pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' |
121 |
| - pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' |
122 |
| - pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' |
123 |
| - pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon" |
124 |
| - pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon" |
125 |
| - pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true |
126 |
| - |
127 |
| - pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' |
128 |
| - pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' |
129 |
| - pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' |
| 34 | + |
| 35 | + config = use_native_modules! |
| 36 | + |
| 37 | + use_react_native!(:path => config["reactNativePath"]) |
| 38 | + |
| 39 | + use_flipper_tvos! |
130 | 40 |
|
131 | 41 | target 'ReactNavigationTVDemo-tvOSTests' do
|
132 |
| - inherit! :search_paths |
| 42 | + inherit! :complete |
133 | 43 | # Pods for testing
|
134 | 44 | end
|
135 | 45 |
|
136 |
| - use_native_modules! |
137 |
| - |
138 |
| - # Enables Flipper. |
139 |
| - # |
140 |
| - # Note that if you have use_frameworks! enabled, Flipper will not work and |
141 |
| - # you should disable these next few lines. |
142 |
| - add_flipper_pods! |
143 | 46 | end
|
144 | 47 |
|
145 | 48 | post_install do |installer|
|
|
0 commit comments