|
@@ -1,82 +1,7 @@
|
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
|
|
- pod 'FlipperKit', versions['Flipper'], :configuration => 'Debug'
|
12
|
|
- pod 'FlipperKit/FlipperKitLayoutPlugin', versions['Flipper'], :configuration => 'Debug'
|
13
|
|
- pod 'FlipperKit/SKIOSNetworkPlugin', versions['Flipper'], :configuration => 'Debug'
|
14
|
|
- pod 'FlipperKit/FlipperKitUserDefaultsPlugin', versions['Flipper'], :configuration => 'Debug'
|
15
|
|
- pod 'FlipperKit/FlipperKitReactPlugin', versions['Flipper'], :configuration => 'Debug'
|
16
|
|
- # List all transitive dependencies for FlipperKit pods
|
17
|
|
- # to avoid them being linked in Release builds
|
18
|
|
- pod 'Flipper', versions['Flipper'], :configuration => 'Debug'
|
19
|
|
- pod 'Flipper-DoubleConversion', versions['DoubleConversion'], :configuration => 'Debug'
|
20
|
|
- pod 'Flipper-Folly', versions['Flipper-Folly'], :configuration => 'Debug'
|
21
|
|
- pod 'Flipper-Glog', versions['Flipper-Glog'], :configuration => 'Debug'
|
22
|
|
- pod 'Flipper-PeerTalk', versions['Flipper-PeerTalk'], :configuration => 'Debug'
|
23
|
|
- pod 'Flipper-RSocket', versions['Flipper-RSocket'], :configuration => 'Debug'
|
24
|
|
- pod 'FlipperKit/Core', versions['Flipper'], :configuration => 'Debug'
|
25
|
|
- pod 'FlipperKit/CppBridge', versions['Flipper'], :configuration => 'Debug'
|
26
|
|
- pod 'FlipperKit/FBCxxFollyDynamicConvert', versions['Flipper'], :configuration => 'Debug'
|
27
|
|
- pod 'FlipperKit/FBDefines', versions['Flipper'], :configuration => 'Debug'
|
28
|
|
- pod 'FlipperKit/FKPortForwarding', versions['Flipper'], :configuration => 'Debug'
|
29
|
|
- pod 'FlipperKit/FlipperKitHighlightOverlay', versions['Flipper'], :configuration => 'Debug'
|
30
|
|
- pod 'FlipperKit/FlipperKitLayoutTextSearchable', versions['Flipper'], :configuration => 'Debug'
|
31
|
|
- pod 'FlipperKit/FlipperKitNetworkPlugin', versions['Flipper'], :configuration => 'Debug'
|
32
|
|
-end
|
33
|
|
-
|
34
|
|
-# Post Install processing for Flipper
|
35
|
|
-def flipper_post_install(installer)
|
36
|
|
- installer.pods_project.targets.each do |target|
|
37
|
|
- if target.name == 'YogaKit'
|
38
|
|
- target.build_configurations.each do |config|
|
39
|
|
- config.build_settings['SWIFT_VERSION'] = '4.1'
|
40
|
|
- end
|
41
|
|
- end
|
42
|
|
- end
|
43
|
|
-end
|
44
|
|
-
|
45
|
4
|
target 'Campus' do
|
46
|
|
- # Pods for Campus
|
47
|
|
- rnPrefix = "../node_modules/react-native"
|
48
|
|
- pod 'FBLazyVector', :path => "#{rnPrefix}/Libraries/FBLazyVector"
|
49
|
|
- pod 'FBReactNativeSpec', :path => "#{rnPrefix}/Libraries/FBReactNativeSpec"
|
50
|
|
- pod 'RCTRequired', :path => "#{rnPrefix}/Libraries/RCTRequired"
|
51
|
|
- pod 'RCTTypeSafety', :path => "#{rnPrefix}/Libraries/TypeSafety"
|
52
|
|
- pod 'React', :path => "#{rnPrefix}/"
|
53
|
|
- pod 'React-Core', :path => "#{rnPrefix}/"
|
54
|
|
- pod 'React-CoreModules', :path => "#{rnPrefix}/React/CoreModules"
|
55
|
|
- pod 'React-RCTActionSheet', :path => "#{rnPrefix}/Libraries/ActionSheetIOS"
|
56
|
|
- pod 'React-RCTAnimation', :path => "#{rnPrefix}/Libraries/NativeAnimation"
|
57
|
|
- pod 'React-RCTBlob', :path => "#{rnPrefix}/Libraries/Blob"
|
58
|
|
- pod 'React-RCTImage', :path => "#{rnPrefix}/Libraries/Image"
|
59
|
|
- pod 'React-RCTLinking', :path => "#{rnPrefix}/Libraries/LinkingIOS"
|
60
|
|
- pod 'React-RCTNetwork', :path => "#{rnPrefix}/Libraries/Network"
|
61
|
|
- pod 'React-RCTSettings', :path => "#{rnPrefix}/Libraries/Settings"
|
62
|
|
- pod 'React-RCTText', :path => "#{rnPrefix}/Libraries/Text"
|
63
|
|
- pod 'React-RCTVibration', :path => "#{rnPrefix}/Libraries/Vibration"
|
64
|
|
- pod 'React-Core/RCTWebSocket', :path => "#{rnPrefix}/"
|
65
|
|
-
|
66
|
|
- pod 'React-cxxreact', :path => "#{rnPrefix}/ReactCommon/cxxreact"
|
67
|
|
- pod 'React-jsi', :path => "#{rnPrefix}/ReactCommon/jsi"
|
68
|
|
- pod 'React-jsiexecutor', :path => "#{rnPrefix}/ReactCommon/jsiexecutor"
|
69
|
|
- pod 'React-jsinspector', :path => "#{rnPrefix}/ReactCommon/jsinspector"
|
70
|
|
- pod 'ReactCommon/callinvoker', :path => "#{rnPrefix}/ReactCommon"
|
71
|
|
- pod 'ReactCommon/turbomodule/core', :path => "#{rnPrefix}/ReactCommon"
|
72
|
|
- pod 'Yoga', :path => "#{rnPrefix}/ReactCommon/yoga", :modular_headers => true
|
73
|
|
-
|
74
|
|
- pod 'DoubleConversion', :podspec => "#{rnPrefix}/third-party-podspecs/DoubleConversion.podspec"
|
75
|
|
- pod 'glog', :podspec => "#{rnPrefix}/third-party-podspecs/glog.podspec"
|
76
|
|
- pod 'Folly', :podspec => "#{rnPrefix}/third-party-podspecs/Folly.podspec"
|
77
|
|
-
|
78
|
|
- # react-native-cli autolinking
|
79
|
|
- use_native_modules!
|
80
|
5
|
|
81
|
6
|
# Permissions
|
82
|
7
|
permissions_path = '../node_modules/react-native-permissions/ios'
|
|
@@ -88,9 +13,9 @@ target 'Campus' do
|
88
|
13
|
#
|
89
|
14
|
# Note that if you have use_frameworks! enabled, Flipper will not work and
|
90
|
15
|
# you should disable these next few lines.
|
91
|
|
- #add_flipper_pods!
|
92
|
|
- #post_install do |installer|
|
93
|
|
- # flipper_post_install(installer)
|
94
|
|
- #end
|
|
16
|
+ # use_flipper!
|
|
17
|
+ # post_install do |installer|
|
|
18
|
+ # flipper_post_install(installer)
|
|
19
|
+ # end
|
95
|
20
|
|
96
|
21
|
end
|