Files
react-native/RNTester/Podfile
T
Héctor RamosandFacebook Github Bot 9ece5bda9b Use CocoaPods-based RNTesterPods for iOS tests (#25416)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/25416

Use CocoaPods-based RNTesterPods workspace to run iOS unit tests and integration tests.

This is necessary as new iOS projects now use CocoaPods by default. CocoaPods also powers the new package auto-linking feature.

In order to provide test coverage for this new default configuration, our iOS tests are being migrated to use a CocoaPods-managed RNTester workspace. This applies to both Circle CI, and Sandcastle.

Changelog:

[iOS] [Changed] - Use RNTesterPods for iOS Tests

Reviewed By: fkgozali

Differential Revision: D16052466

fbshipit-source-id: 724b0c51008882d3c06a9074693fe23e74abe86b
2019-06-28 19:18:10 -07:00

44 lines
1.1 KiB
Ruby

platform :ios, '9.0'
require_relative '../scripts/autolink-ios'
def pods()
# Uncomment for Swift
# use_frameworks!
project 'RNTesterPods.xcodeproj'
# Enable TurboModule
use_react_native!(path: "..", turbo_modules_enabled: true)
pod 'React-turbomodule-samples', :path => '../ReactCommon/turbomodule/samples'
# Additional Pods which aren't included in the default Podfile
pod 'React-ART', :path => '../Libraries/ART'
pod 'React-RCTPushNotification', :path => '../Libraries/PushNotificationIOS'
# Additional Pods which are classed as unstable
#
# To use fabric: add `fabric_enabled` option to the use_react_native method above, like below
# use_react_native!(path: "..", turbo_modules_enabled: true, fabric_enabled: true)
end
target 'RNTester' do
pods()
end
target 'RNTesterUnitTests' do
pods()
pod 'React-RCTTest', :path => "RCTTest"
end
target 'RNTesterIntegrationTests' do
pods()
pod 'React-RCTTest', :path => "RCTTest"
end
post_install do |installer|
installer.pods_project.targets.each do |target|
puts target.name
end
end