forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a ruby file in RN which reflects what Podspecs should be importe…
…d by default (facebook#24555) Summary: Simplifies the code anyone on iOS using RN has _to see_. In this case, React Native knows that everyone probably wants all these imports (unless they're using dev mode) and so we can auto-import the pod specs for a user from inside the lib. Basically auto-link for the React side. [iOS] [Added] - Adds a ruby function which imports the Pods for RN, so that users only have to include this function and it can change per RN version. Pull Request resolved: facebook#24555 Differential Revision: D15044780 Pulled By: cpojer fbshipit-source-id: c3702a52104706def51da6f1d11ab966d57d1edb
- Loading branch information
1 parent
67be819
commit 326248e
Showing
3 changed files
with
70 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,28 @@ | ||
platform :ios, '9.0' | ||
|
||
require_relative '../scripts/autolink-ios' | ||
|
||
target 'RNTester' do | ||
# Uncomment for Swift | ||
# use_frameworks! | ||
|
||
project 'RNTesterPods.xcodeproj' | ||
use_react_native!(path: "..") | ||
|
||
pod 'React', :path => '../' | ||
pod 'React-ART', :path => '../Libraries/ART' | ||
pod 'React-Core', :path => '../React' | ||
pod 'React-DevSupport', :path => '../React' | ||
pod 'React-fishhook', :path => '../Libraries/fishhook' | ||
pod 'React-RCTActionSheet', :path => '../Libraries/ActionSheetIOS' | ||
pod 'React-RCTAnimation', :path => '../Libraries/NativeAnimation' | ||
pod 'React-RCTBlob', :path => '../Libraries/Blob' | ||
# Additional Pods which aren't included in the default Podfile | ||
pod 'React-RCTCameraRoll', :path => '../Libraries/CameraRoll' | ||
pod 'React-RCTImage', :path => '../Libraries/Image' | ||
pod 'React-RCTLinking', :path => '../Libraries/LinkingIOS' | ||
pod 'React-RCTNetwork', :path => '../Libraries/Network' | ||
pod 'React-ART', :path => '../Libraries/ART' | ||
pod 'React-RCTPushNotification', :path => '../Libraries/PushNotificationIOS' | ||
pod 'React-RCTSettings', :path => '../Libraries/Settings' | ||
pod 'React-RCTText', :path => '../Libraries/Text' | ||
pod 'React-RCTVibration', :path => '../Libraries/Vibration' | ||
pod 'React-RCTWebSocket', :path => '../Libraries/WebSocket' | ||
|
||
# Additional Pods which are classed as unstable | ||
# | ||
# Fabric Pods, uncomment these to enable in RNTester | ||
# pod 'React-Fabric', :path => '../ReactCommon' | ||
# pod 'React-graphics', :path => '../ReactCommon/fabric/graphics' | ||
# pod 'React-jsi/Fabric', :path => '../ReactCommon/jsi' | ||
# pod 'React-RCTFabric', :path => '../React' | ||
# pod 'Folly/Fabric', :podspec => '../third-party-podspecs/Folly.podspec' | ||
|
||
pod 'React-cxxreact', :path => '../ReactCommon/cxxreact' | ||
pod 'React-jsi', :path => '../ReactCommon/jsi' | ||
pod 'React-jsiexecutor', :path => '../ReactCommon/jsiexecutor' | ||
pod 'React-jsinspector', :path => '../ReactCommon/jsinspector' | ||
pod 'yoga', :path => '../ReactCommon/yoga' | ||
|
||
pod 'React-turbomodule-core', :path => '../ReactCommon/turbomodule/core' | ||
pod 'React-turbomodule-samples', :path => '../ReactCommon/turbomodule/samples' | ||
|
||
# Third party deps podspec link | ||
pod 'DoubleConversion', :podspec => '../third-party-podspecs/DoubleConversion.podspec' | ||
pod 'glog', :podspec => '../third-party-podspecs/glog.podspec' | ||
pod 'Folly', :podspec => '../third-party-podspecs/Folly.podspec' | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
def use_react_native! (options={}) | ||
|
||
# The prefix to the react-native | ||
prefix = options[:path] ||= "../node_modules/react-native" | ||
|
||
# Include DevSupport dependency | ||
production = options[:production] ||= false | ||
|
||
# The Pods which should be included in all projects | ||
pod 'React', :path => "#{prefix}/" | ||
pod 'React-Core', :path => "#{prefix}/React" | ||
pod 'React-fishhook', :path => "#{prefix}/Libraries/fishhook" | ||
pod 'React-RCTActionSheet', :path => "#{prefix}/Libraries/ActionSheetIOS" | ||
pod 'React-RCTAnimation', :path => "#{prefix}/Libraries/NativeAnimation" | ||
pod 'React-RCTBlob', :path => "#{prefix}/Libraries/Blob" | ||
pod 'React-RCTImage', :path => "#{prefix}/Libraries/Image" | ||
pod 'React-RCTLinking', :path => "#{prefix}/Libraries/LinkingIOS" | ||
pod 'React-RCTNetwork', :path => "#{prefix}/Libraries/Network" | ||
pod 'React-RCTSettings', :path => "#{prefix}/Libraries/Settings" | ||
pod 'React-RCTText', :path => "#{prefix}/Libraries/Text" | ||
pod 'React-RCTVibration', :path => "#{prefix}/Libraries/Vibration" | ||
pod 'React-RCTWebSocket', :path => "#{prefix}/Libraries/WebSocket" | ||
|
||
unless production | ||
pod 'React-DevSupport', :path => "#{prefix}/React" | ||
end | ||
|
||
pod 'React-cxxreact', :path => "#{prefix}/ReactCommon/cxxreact" | ||
pod 'React-jsi', :path => "#{prefix}/ReactCommon/jsi" | ||
pod 'React-jsiexecutor', :path => "#{prefix}/ReactCommon/jsiexecutor" | ||
pod 'React-jsinspector', :path => "#{prefix}/ReactCommon/jsinspector" | ||
pod 'yoga', :path => "#{prefix}/ReactCommon/yoga" | ||
|
||
pod 'DoubleConversion', :podspec => "#{prefix}/third-party-podspecs/DoubleConversion.podspec" | ||
pod 'glog', :podspec => "#{prefix}/third-party-podspecs/glog.podspec" | ||
pod 'Folly', :podspec => "#{prefix}/third-party-podspecs/Folly.podspec" | ||
end |