@@ -2,6 +2,49 @@ platform :ios, '9.0'
22$node_modules_path = '../../node_modules'
33require_relative "#{ $node_modules_path} /@react-native-community/cli-platform-ios/native_modules"
44
5+ def add_flipper_pods! ( versions = { } )
6+ versions [ 'Flipper' ] ||= '~> 0.33.1'
7+ versions [ 'DoubleConversion' ] ||= '1.1.7'
8+ versions [ 'Flipper-Folly' ] ||= '~> 2.1'
9+ versions [ 'Flipper-Glog' ] ||= '0.3.6'
10+ versions [ 'Flipper-PeerTalk' ] ||= '~> 0.0.4'
11+ versions [ 'Flipper-RSocket' ] ||= '~> 1.0'
12+
13+ pod 'FlipperKit' , versions [ 'Flipper' ] , :configuration => 'Debug'
14+ pod 'FlipperKit/FlipperKitLayoutPlugin' , versions [ 'Flipper' ] , :configuration => 'Debug'
15+ pod 'FlipperKit/SKIOSNetworkPlugin' , versions [ 'Flipper' ] , :configuration => 'Debug'
16+ pod 'FlipperKit/FlipperKitUserDefaultsPlugin' , versions [ 'Flipper' ] , :configuration => 'Debug'
17+ pod 'FlipperKit/FlipperKitReactPlugin' , versions [ 'Flipper' ] , :configuration => 'Debug'
18+
19+ # List all transitive dependencies for FlipperKit pods
20+ # to avoid them being linked in Release builds
21+ pod 'Flipper' , versions [ 'Flipper' ] , :configuration => 'Debug'
22+ pod 'Flipper-DoubleConversion' , versions [ 'DoubleConversion' ] , :configuration => 'Debug'
23+ pod 'Flipper-Folly' , versions [ 'Flipper-Folly' ] , :configuration => 'Debug'
24+ pod 'Flipper-Glog' , versions [ 'Flipper-Glog' ] , :configuration => 'Debug'
25+ pod 'Flipper-PeerTalk' , versions [ 'Flipper-PeerTalk' ] , :configuration => 'Debug'
26+ pod 'Flipper-RSocket' , versions [ 'Flipper-RSocket' ] , :configuration => 'Debug'
27+ pod 'FlipperKit/Core' , versions [ 'Flipper' ] , :configuration => 'Debug'
28+ pod 'FlipperKit/CppBridge' , versions [ 'Flipper' ] , :configuration => 'Debug'
29+ pod 'FlipperKit/FBCxxFollyDynamicConvert' , versions [ 'Flipper' ] , :configuration => 'Debug'
30+ pod 'FlipperKit/FBDefines' , versions [ 'Flipper' ] , :configuration => 'Debug'
31+ pod 'FlipperKit/FKPortForwarding' , versions [ 'Flipper' ] , :configuration => 'Debug'
32+ pod 'FlipperKit/FlipperKitHighlightOverlay' , versions [ 'Flipper' ] , :configuration => 'Debug'
33+ pod 'FlipperKit/FlipperKitLayoutTextSearchable' , versions [ 'Flipper' ] , :configuration => 'Debug'
34+ pod 'FlipperKit/FlipperKitNetworkPlugin' , versions [ 'Flipper' ] , :configuration => 'Debug'
35+ end
36+
37+ # Post Install processing for Flipper
38+ def flipper_post_install ( installer )
39+ installer . pods_project . targets . each do |target |
40+ if target . name == 'YogaKit'
41+ target . build_configurations . each do |config |
42+ config . build_settings [ 'SWIFT_VERSION' ] = '4.1'
43+ end
44+ end
45+ end
46+ end
47+
548target 'example' do
649 # Pods for example
750 pod 'FBLazyVector' , :path => "#{ $node_modules_path} /react-native/Libraries/FBLazyVector"
@@ -27,21 +70,30 @@ target 'example' do
2770 pod 'React-jsi' , :path => "#{ $node_modules_path} /react-native/ReactCommon/jsi"
2871 pod 'React-jsiexecutor' , :path => "#{ $node_modules_path} /react-native/ReactCommon/jsiexecutor"
2972 pod 'React-jsinspector' , :path => "#{ $node_modules_path} /react-native/ReactCommon/jsinspector"
30- pod 'ReactCommon/jscallinvoker ' , :path => "#{ $node_modules_path} /react-native/ReactCommon"
73+ pod 'ReactCommon/callinvoker ' , :path => "#{ $node_modules_path} /react-native/ReactCommon"
3174 pod 'ReactCommon/turbomodule/core' , :path => "#{ $node_modules_path} /react-native/ReactCommon"
32- pod 'Yoga' , :path => "#{ $node_modules_path} /react-native/ReactCommon/yoga"
75+ pod 'Yoga' , :path => "#{ $node_modules_path} /react-native/ReactCommon/yoga" , :modular_headers => true
3376
3477 pod 'DoubleConversion' , :podspec => "#{ $node_modules_path} /react-native/third-party-podspecs/DoubleConversion.podspec"
3578 pod 'glog' , :podspec => "#{ $node_modules_path} /react-native/third-party-podspecs/glog.podspec"
3679 pod 'Folly' , :podspec => "#{ $node_modules_path} /react-native/third-party-podspecs/Folly.podspec"
3780 pod 'RNCPushNotificationIOS' , :path => "../../"
3881
3982 target 'exampleTests' do
40- inherit! :search_paths
83+ inherit! :complete
4184 # Pods for testing
4285 end
4386
4487 use_native_modules!
88+
89+ # Enables Flipper.
90+ #
91+ # Note that if you have use_frameworks! enabled, Flipper will not work and
92+ # you should disable these next few lines.
93+ add_flipper_pods!
94+ post_install do |installer |
95+ flipper_post_install ( installer )
96+ end
4597end
4698
4799target 'example-tvOS' do
@@ -51,5 +103,4 @@ target 'example-tvOS' do
51103 inherit! :search_paths
52104 # Pods for testing
53105 end
54-
55- end
106+ end
0 commit comments