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!
5
- version = '~> 0.33.1'
6
- pod 'FlipperKit' , version , :configuration => 'Debug'
7
- pod 'FlipperKit/FlipperKitLayoutPlugin' , version , :configuration => 'Debug'
8
- pod 'FlipperKit/SKIOSNetworkPlugin' , version , :configuration => 'Debug'
9
- pod 'FlipperKit/FlipperKitUserDefaultsPlugin' , version , :configuration => 'Debug'
10
- pod 'FlipperKit/FlipperKitReactPlugin' , version , :configuration => 'Debug'
11
- end
12
-
13
- # Post Install processing for Flipper
14
- def flipper_post_install ( installer )
15
- installer . pods_project . targets . each do |target |
16
- if target . name == 'YogaKit'
17
- target . build_configurations . each do |config |
18
- config . build_settings [ 'SWIFT_VERSION' ] = '4.1'
19
- end
20
- end
21
- end
22
- end
4
+ platform :ios , '10.0'
23
5
24
6
target 'ProjectName' do
25
- # Pods for ProjectName
26
- pod 'FBLazyVector' , :path => "../node_modules/react-native/Libraries/FBLazyVector"
27
- pod 'FBReactNativeSpec' , :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
28
- pod 'RCTRequired' , :path => "../node_modules/react-native/Libraries/RCTRequired"
29
- pod 'RCTTypeSafety' , :path => "../node_modules/react-native/Libraries/TypeSafety"
30
- pod 'React' , :path => '../node_modules/react-native/'
31
- pod 'React-Core' , :path => '../node_modules/react-native/'
32
- pod 'React-CoreModules' , :path => '../node_modules/react-native/React/CoreModules'
33
- pod 'React-Core/DevSupport' , :path => '../node_modules/react-native/'
34
- pod 'React-RCTActionSheet' , :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
35
- pod 'React-RCTAnimation' , :path => '../node_modules/react-native/Libraries/NativeAnimation'
36
- pod 'React-RCTBlob' , :path => '../node_modules/react-native/Libraries/Blob'
37
- pod 'React-RCTImage' , :path => '../node_modules/react-native/Libraries/Image'
38
- pod 'React-RCTLinking' , :path => '../node_modules/react-native/Libraries/LinkingIOS'
39
- pod 'React-RCTNetwork' , :path => '../node_modules/react-native/Libraries/Network'
40
- pod 'React-RCTSettings' , :path => '../node_modules/react-native/Libraries/Settings'
41
- pod 'React-RCTText' , :path => '../node_modules/react-native/Libraries/Text'
42
- pod 'React-RCTVibration' , :path => '../node_modules/react-native/Libraries/Vibration'
43
- pod 'React-Core/RCTWebSocket' , :path => '../node_modules/react-native/'
44
-
45
- pod 'React-cxxreact' , :path => '../node_modules/react-native/ReactCommon/cxxreact'
46
- pod 'React-jsi' , :path => '../node_modules/react-native/ReactCommon/jsi'
47
- pod 'React-jsiexecutor' , :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
48
- pod 'React-jsinspector' , :path => '../node_modules/react-native/ReactCommon/jsinspector'
49
- pod 'ReactCommon/callinvoker' , :path => "../node_modules/react-native/ReactCommon"
50
- pod 'ReactCommon/turbomodule/core' , :path => "../node_modules/react-native/ReactCommon"
51
- pod 'Yoga' , :path => '../node_modules/react-native/ReactCommon/yoga' , :modular_headers => true
52
-
53
- pod 'DoubleConversion' , :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
54
- pod 'glog' , :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
55
- pod 'Folly' , :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
7
+ config = use_native_modules!
8
+
9
+ use_react_native! ( :path => config [ "reactNativePath" ] )
56
10
57
11
target 'ProjectNameTests' do
58
12
inherit! :complete
@@ -65,7 +19,7 @@ target 'ProjectName' do
65
19
#
66
20
# Note that if you have use_frameworks! enabled, Flipper will not work and
67
21
# you should disable these next few lines.
68
- add_flipper_pods !
22
+ use_flipper !
69
23
post_install do |installer |
70
24
flipper_post_install ( installer )
71
25
end
0 commit comments