|
1 | | -platform :ios, '9.0' |
| 1 | +require_relative '../../node_modules/react-native/scripts/react_native_pods' |
2 | 2 | require_relative '../../node_modules/@react-native-community/cli-platform-ios/native_modules' |
3 | 3 |
|
4 | | -def add_flipper_pods!(versions = {}) |
5 | | - versions['Flipper'] ||= '~> 0.33.1' |
6 | | - versions['DoubleConversion'] ||= '1.1.7' |
7 | | - versions['Flipper-Folly'] ||= '~> 2.1' |
8 | | - versions['Flipper-Glog'] ||= '0.3.6' |
9 | | - versions['Flipper-PeerTalk'] ||= '~> 0.0.4' |
10 | | - versions['Flipper-RSocket'] ||= '~> 1.0' |
11 | | - |
12 | | - pod 'FlipperKit', versions['Flipper'], :configuration => 'Debug' |
13 | | - pod 'FlipperKit/FlipperKitLayoutPlugin', versions['Flipper'], :configuration => 'Debug' |
14 | | - pod 'FlipperKit/SKIOSNetworkPlugin', versions['Flipper'], :configuration => 'Debug' |
15 | | - pod 'FlipperKit/FlipperKitUserDefaultsPlugin', versions['Flipper'], :configuration => 'Debug' |
16 | | - pod 'FlipperKit/FlipperKitReactPlugin', versions['Flipper'], :configuration => 'Debug' |
17 | | - |
18 | | - # List all transitive dependencies for FlipperKit pods |
19 | | - # to avoid them being linked in Release builds |
20 | | - pod 'Flipper', versions['Flipper'], :configuration => 'Debug' |
21 | | - pod 'Flipper-DoubleConversion', versions['DoubleConversion'], :configuration => 'Debug' |
22 | | - pod 'Flipper-Folly', versions['Flipper-Folly'], :configuration => 'Debug' |
23 | | - pod 'Flipper-Glog', versions['Flipper-Glog'], :configuration => 'Debug' |
24 | | - pod 'Flipper-PeerTalk', versions['Flipper-PeerTalk'], :configuration => 'Debug' |
25 | | - pod 'Flipper-RSocket', versions['Flipper-RSocket'], :configuration => 'Debug' |
26 | | - pod 'FlipperKit/Core', versions['Flipper'], :configuration => 'Debug' |
27 | | - pod 'FlipperKit/CppBridge', versions['Flipper'], :configuration => 'Debug' |
28 | | - pod 'FlipperKit/FBCxxFollyDynamicConvert', versions['Flipper'], :configuration => 'Debug' |
29 | | - pod 'FlipperKit/FBDefines', versions['Flipper'], :configuration => 'Debug' |
30 | | - pod 'FlipperKit/FKPortForwarding', versions['Flipper'], :configuration => 'Debug' |
31 | | - pod 'FlipperKit/FlipperKitHighlightOverlay', versions['Flipper'], :configuration => 'Debug' |
32 | | - pod 'FlipperKit/FlipperKitLayoutTextSearchable', versions['Flipper'], :configuration => 'Debug' |
33 | | - pod 'FlipperKit/FlipperKitNetworkPlugin', versions['Flipper'], :configuration => 'Debug' |
34 | | -end |
35 | | - |
36 | | -# Post Install processing for Flipper |
37 | | -def flipper_post_install(installer) |
38 | | - installer.pods_project.targets.each do |target| |
39 | | - if target.name == 'YogaKit' |
40 | | - target.build_configurations.each do |config| |
41 | | - config.build_settings['SWIFT_VERSION'] = '4.1' |
42 | | - end |
43 | | - end |
44 | | - end |
45 | | -end |
| 4 | +platform :ios, '10.0' |
46 | 5 |
|
47 | 6 | target 'example' do |
48 | 7 | pod 'react-native-segmented-control', :path => "../.." |
| 8 | + config = use_native_modules! |
49 | 9 |
|
50 | | - # Pods for example |
51 | | - pod 'FBLazyVector', :path => "../../node_modules/react-native/Libraries/FBLazyVector" |
52 | | - pod 'FBReactNativeSpec', :path => "../../node_modules/react-native/Libraries/FBReactNativeSpec" |
53 | | - pod 'RCTRequired', :path => "../../node_modules/react-native/Libraries/RCTRequired" |
54 | | - pod 'RCTTypeSafety', :path => "../../node_modules/react-native/Libraries/TypeSafety" |
55 | | - pod 'React', :path => '../../node_modules/react-native/' |
56 | | - pod 'React-Core', :path => '../../node_modules/react-native/' |
57 | | - pod 'React-CoreModules', :path => '../../node_modules/react-native/React/CoreModules' |
58 | | - pod 'React-Core/DevSupport', :path => '../../node_modules/react-native/' |
59 | | - pod 'React-RCTActionSheet', :path => '../../node_modules/react-native/Libraries/ActionSheetIOS' |
60 | | - pod 'React-RCTAnimation', :path => '../../node_modules/react-native/Libraries/NativeAnimation' |
61 | | - pod 'React-RCTBlob', :path => '../../node_modules/react-native/Libraries/Blob' |
62 | | - pod 'React-RCTImage', :path => '../../node_modules/react-native/Libraries/Image' |
63 | | - pod 'React-RCTLinking', :path => '../../node_modules/react-native/Libraries/LinkingIOS' |
64 | | - pod 'React-RCTNetwork', :path => '../../node_modules/react-native/Libraries/Network' |
65 | | - pod 'React-RCTSettings', :path => '../../node_modules/react-native/Libraries/Settings' |
66 | | - pod 'React-RCTText', :path => '../../node_modules/react-native/Libraries/Text' |
67 | | - pod 'React-RCTVibration', :path => '../../node_modules/react-native/Libraries/Vibration' |
68 | | - pod 'React-Core/RCTWebSocket', :path => '../../node_modules/react-native/' |
69 | | - |
70 | | - pod 'React-cxxreact', :path => '../../node_modules/react-native/ReactCommon/cxxreact' |
71 | | - pod 'React-jsi', :path => '../../node_modules/react-native/ReactCommon/jsi' |
72 | | - pod 'React-jsiexecutor', :path => '../../node_modules/react-native/ReactCommon/jsiexecutor' |
73 | | - pod 'React-jsinspector', :path => '../../node_modules/react-native/ReactCommon/jsinspector' |
74 | | - pod 'ReactCommon/callinvoker', :path => "../../node_modules/react-native/ReactCommon" |
75 | | - pod 'ReactCommon/turbomodule/core', :path => "../../node_modules/react-native/ReactCommon" |
76 | | - pod 'Yoga', :path => '../../node_modules/react-native/ReactCommon/yoga', :modular_headers => true |
77 | | - |
78 | | - pod 'DoubleConversion', :podspec => '../../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' |
79 | | - pod 'glog', :podspec => '../../node_modules/react-native/third-party-podspecs/glog.podspec' |
80 | | - pod 'Folly', :podspec => '../../node_modules/react-native/third-party-podspecs/Folly.podspec' |
| 10 | + use_react_native!(:path => '../../node_modules/react-native') |
81 | 11 |
|
82 | 12 | target 'exampleTests' do |
83 | 13 | inherit! :complete |
84 | 14 | # Pods for testing |
85 | 15 | end |
86 | 16 |
|
87 | | - use_native_modules! |
88 | | - |
89 | 17 | # Enables Flipper. |
90 | 18 | # |
91 | 19 | # Note that if you have use_frameworks! enabled, Flipper will not work and |
92 | 20 | # you should disable these next few lines. |
93 | | - add_flipper_pods! |
| 21 | + use_flipper! |
94 | 22 | post_install do |installer| |
95 | 23 | flipper_post_install(installer) |
96 | 24 | end |
97 | 25 | end |
98 | | - |
99 | | -target 'example-tvOS' do |
100 | | - # Pods for example-tvOS |
101 | | - |
102 | | - target 'example-tvOSTests' do |
103 | | - inherit! :search_paths |
104 | | - # Pods for testing |
105 | | - end |
106 | | -end |
0 commit comments