You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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