|
| 1 | +require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' |
| 2 | + |
| 3 | +def add_flipper_pods!(versions = {}) |
| 4 | + versions['Flipper'] ||= '~> 0.33.1' |
| 5 | + versions['DoubleConversion'] ||= '1.1.7' |
| 6 | + versions['Flipper-Folly'] ||= '~> 2.1' |
| 7 | + versions['Flipper-Glog'] ||= '0.3.6' |
| 8 | + versions['Flipper-PeerTalk'] ||= '~> 0.0.4' |
| 9 | + versions['Flipper-RSocket'] ||= '~> 1.0' |
| 10 | + |
| 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 | + |
| 17 | + # List all transitive dependencies for FlipperKit pods |
| 18 | + # to avoid them being linked in Release builds |
| 19 | + pod 'Flipper', versions['Flipper'], :configuration => 'Debug' |
| 20 | + pod 'Flipper-DoubleConversion', versions['DoubleConversion'], :configuration => 'Debug' |
| 21 | + pod 'Flipper-Folly', versions['Flipper-Folly'], :configuration => 'Debug' |
| 22 | + pod 'Flipper-Glog', versions['Flipper-Glog'], :configuration => 'Debug' |
| 23 | + pod 'Flipper-PeerTalk', versions['Flipper-PeerTalk'], :configuration => 'Debug' |
| 24 | + pod 'Flipper-RSocket', versions['Flipper-RSocket'], :configuration => 'Debug' |
| 25 | + pod 'FlipperKit/Core', versions['Flipper'], :configuration => 'Debug' |
| 26 | + pod 'FlipperKit/CppBridge', versions['Flipper'], :configuration => 'Debug' |
| 27 | + pod 'FlipperKit/FBCxxFollyDynamicConvert', versions['Flipper'], :configuration => 'Debug' |
| 28 | + pod 'FlipperKit/FBDefines', versions['Flipper'], :configuration => 'Debug' |
| 29 | + pod 'FlipperKit/FKPortForwarding', versions['Flipper'], :configuration => 'Debug' |
| 30 | + pod 'FlipperKit/FlipperKitHighlightOverlay', versions['Flipper'], :configuration => 'Debug' |
| 31 | + pod 'FlipperKit/FlipperKitLayoutTextSearchable', versions['Flipper'], :configuration => 'Debug' |
| 32 | + pod 'FlipperKit/FlipperKitNetworkPlugin', versions['Flipper'], :configuration => 'Debug' |
| 33 | +end |
| 34 | + |
| 35 | +# Post Install processing for Flipper |
| 36 | +def flipper_post_install(installer) |
| 37 | + installer.pods_project.targets.each do |target| |
| 38 | + if target.name == 'YogaKit' |
| 39 | + target.build_configurations.each do |config| |
| 40 | + config.build_settings['SWIFT_VERSION'] = '4.1' |
| 41 | + end |
| 42 | + end |
| 43 | + end |
| 44 | +end |
| 45 | + |
| 46 | +abstract_target 'Shared' do |
| 47 | + # Pods for RNSQLiteDemo |
| 48 | + pod 'FBLazyVector', :path => '../node_modules/react-native-macos/Libraries/FBLazyVector' |
| 49 | + pod 'FBReactNativeSpec', :path => '../node_modules/react-native-macos/Libraries/FBReactNativeSpec' |
| 50 | + pod 'RCTRequired', :path => '../node_modules/react-native-macos/Libraries/RCTRequired' |
| 51 | + pod 'RCTTypeSafety', :path => '../node_modules/react-native-macos/Libraries/TypeSafety' |
| 52 | + pod 'React', :path => '../node_modules/react-native-macos/' |
| 53 | + pod 'React-Core', :path => '../node_modules/react-native-macos/' |
| 54 | + pod 'React-CoreModules', :path => '../node_modules/react-native-macos/React/CoreModules' |
| 55 | + pod 'React-Core/DevSupport', :path => '../node_modules/react-native-macos/' |
| 56 | + pod 'React-RCTActionSheet', :path => '../node_modules/react-native-macos/Libraries/ActionSheetIOS' |
| 57 | + pod 'React-RCTAnimation', :path => '../node_modules/react-native-macos/Libraries/NativeAnimation' |
| 58 | + pod 'React-RCTBlob', :path => '../node_modules/react-native-macos/Libraries/Blob' |
| 59 | + pod 'React-RCTImage', :path => '../node_modules/react-native-macos/Libraries/Image' |
| 60 | + pod 'React-RCTLinking', :path => '../node_modules/react-native-macos/Libraries/LinkingIOS' |
| 61 | + pod 'React-RCTNetwork', :path => '../node_modules/react-native-macos/Libraries/Network' |
| 62 | + pod 'React-RCTSettings', :path => '../node_modules/react-native-macos/Libraries/Settings' |
| 63 | + pod 'React-RCTText', :path => '../node_modules/react-native-macos/Libraries/Text' |
| 64 | + pod 'React-RCTVibration', :path => '../node_modules/react-native-macos/Libraries/Vibration' |
| 65 | + pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native-macos/' |
| 66 | + |
| 67 | + pod 'React-cxxreact', :path => '../node_modules/react-native-macos/ReactCommon/cxxreact' |
| 68 | + pod 'React-jsi', :path => '../node_modules/react-native-macos/ReactCommon/jsi' |
| 69 | + pod 'React-jsiexecutor', :path => '../node_modules/react-native-macos/ReactCommon/jsiexecutor' |
| 70 | + pod 'React-jsinspector', :path => '../node_modules/react-native-macos/ReactCommon/jsinspector' |
| 71 | + pod 'ReactCommon/callinvoker', :path => '../node_modules/react-native-macos/ReactCommon' |
| 72 | + pod 'ReactCommon/turbomodule/core', :path => '../node_modules/react-native-macos/ReactCommon' |
| 73 | + pod 'Yoga', :path => '../node_modules/react-native-macos/ReactCommon/yoga', :modular_headers => true |
| 74 | + |
| 75 | + pod 'DoubleConversion', :podspec => '../node_modules/react-native-macos/third-party-podspecs/DoubleConversion.podspec' |
| 76 | + pod 'glog', :podspec => '../node_modules/react-native-macos/third-party-podspecs/glog.podspec' |
| 77 | + pod 'RCT-Folly', :podspec => '../node_modules/react-native-macos/third-party-podspecs/RCT-Folly.podspec' |
| 78 | + pod 'boost-for-react-native', :podspec => '../node_modules/react-native-macos/third-party-podspecs/boost-for-react-native.podspec' |
| 79 | + |
| 80 | + target 'RNSQLiteDemo-macOS' do |
| 81 | + platform :macos, '10.15' |
| 82 | + use_native_modules! |
| 83 | + |
| 84 | + # Enables Hermes |
| 85 | + # |
| 86 | + # Be sure to first install the `hermes-engine-darwin` npm package, e.g.: |
| 87 | + # |
| 88 | + # $ yarn add 'hermes-engine-darwin@^0.4.3' |
| 89 | + # |
| 90 | + # pod 'React-Core/Hermes', :path => '../node_modules/react-native-macos/' |
| 91 | + # pod 'hermes', :path => '../node_modules/hermes-engine-darwin' |
| 92 | + # pod 'libevent', :podspec => '../node_modules/react-native-macos/third-party-podspecs/libevent.podspec' |
| 93 | + |
| 94 | + # Pods specifically for macOS target |
| 95 | + end |
| 96 | + |
| 97 | + target 'RNSQLiteDemo-iOS' do |
| 98 | + platform :ios, '12' |
| 99 | + use_native_modules! |
| 100 | + |
| 101 | + # Enables Flipper. |
| 102 | + # |
| 103 | + # Note that if you have use_frameworks! enabled, Flipper will not work and |
| 104 | + # you should disable these next few lines. |
| 105 | + add_flipper_pods! |
| 106 | + post_install do |installer| |
| 107 | + flipper_post_install(installer) |
| 108 | + end |
| 109 | + |
| 110 | + # Pods specifically for iOS target |
| 111 | + end |
| 112 | +end |
0 commit comments