mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
TM iOS: Set up CocoaPods specs for the TM specs
Summary: This defines various sub specs to support building TurboModules that implement the codegen'ed specs. Reviewed By: PeteTheHeat Differential Revision: D16043221 fbshipit-source-id: 27ed532be929c11c8fe648632da8a72061cbc8b0
This commit is contained in:
committed by
Facebook Github Bot
parent
020c11cc7b
commit
fde8a4cf93
@@ -2,10 +2,10 @@ def use_react_native! (options={})
|
||||
|
||||
# The prefix to the react-native
|
||||
prefix = options[:path] ||= "../node_modules/react-native"
|
||||
|
||||
|
||||
# Include Fabric dependencies
|
||||
fabric_enabled = options[:fabric_enabled] ||= false
|
||||
|
||||
|
||||
# Include Turbo Modules dependencies
|
||||
turbo_modules_enabled = options[:turbo_modules_enabled] ||= false
|
||||
|
||||
@@ -13,8 +13,12 @@ def use_react_native! (options={})
|
||||
production = options[:production] ||= false
|
||||
|
||||
# The Pods which should be included in all projects
|
||||
pod 'FBLazyVector', :path => "#{prefix}/Libraries/FBLazyVector"
|
||||
pod 'FBReactNativeSpec', :path => "#{prefix}/Libraries/FBReactNativeSpec"
|
||||
pod 'RCTRequired', :path => "#{prefix}/Libraries/RCTRequired"
|
||||
pod 'React', :path => "#{prefix}/"
|
||||
pod 'React-Core', :path => "#{prefix}/React"
|
||||
pod 'React-CoreModules', :path => "#{prefix}/React/CoreModules"
|
||||
pod 'React-RCTActionSheet', :path => "#{prefix}/Libraries/ActionSheetIOS"
|
||||
pod 'React-RCTAnimation', :path => "#{prefix}/Libraries/NativeAnimation"
|
||||
pod 'React-RCTBlob', :path => "#{prefix}/Libraries/Blob"
|
||||
@@ -25,6 +29,7 @@ def use_react_native! (options={})
|
||||
pod 'React-RCTText', :path => "#{prefix}/Libraries/Text"
|
||||
pod 'React-RCTVibration', :path => "#{prefix}/Libraries/Vibration"
|
||||
pod 'React-RCTWebSocket', :path => "#{prefix}/Libraries/WebSocket"
|
||||
pod 'React-TypeSafety', :path => "#{prefix}/Libraries/TypeSafety"
|
||||
|
||||
unless production
|
||||
pod 'React-DevSupport', :path => "#{prefix}/React"
|
||||
@@ -35,6 +40,7 @@ def use_react_native! (options={})
|
||||
pod 'React-jsi', :path => "#{prefix}/ReactCommon/jsi"
|
||||
pod 'React-jsiexecutor', :path => "#{prefix}/ReactCommon/jsiexecutor"
|
||||
pod 'React-jsinspector', :path => "#{prefix}/ReactCommon/jsinspector"
|
||||
pod 'React-turbomodule-core', :path => "#{prefix}/ReactCommon/turbomodule/core"
|
||||
pod 'yoga', :path => "#{prefix}/ReactCommon/yoga"
|
||||
|
||||
pod 'DoubleConversion', :podspec => "#{prefix}/third-party-podspecs/DoubleConversion.podspec"
|
||||
@@ -48,8 +54,5 @@ def use_react_native! (options={})
|
||||
pod 'React-RCTFabric', :path => "#{prefix}/React"
|
||||
pod 'Folly/Fabric', :podspec => "#{prefix}/third-party-podspecs/Folly.podspec"
|
||||
end
|
||||
|
||||
if turbo_modules_enabled
|
||||
pod 'React-turbomodule-core', :path => "#{prefix}/ReactCommon/turbomodule/core"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user