2020-08-20 03:54:30 +03:00
|
|
|
require_relative '../../scripts/react_native_pods'
|
2018-04-13 01:54:36 +03:00
|
|
|
|
2020-02-20 02:15:19 +03:00
|
|
|
source 'https://cdn.cocoapods.org/'
|
2021-01-12 03:43:51 +03:00
|
|
|
platform :ios, '11.0'
|
2019-04-23 15:44:07 +03:00
|
|
|
|
2020-12-04 02:58:36 +03:00
|
|
|
USE_FRAMEWORKS = ENV['USE_FRAMEWORKS'] == '1'
|
|
|
|
|
|
|
|
if USE_FRAMEWORKS
|
2019-07-25 21:42:49 +03:00
|
|
|
puts "Installing pods with use_frameworks!"
|
|
|
|
use_frameworks!
|
|
|
|
end
|
2018-04-13 01:54:36 +03:00
|
|
|
|
2020-11-03 12:13:01 +03:00
|
|
|
if ENV['USE_HERMES'] == '1'
|
|
|
|
puts "Using Hermes engine"
|
|
|
|
end
|
|
|
|
|
2019-07-25 21:42:49 +03:00
|
|
|
def pods()
|
2018-04-13 01:54:36 +03:00
|
|
|
project 'RNTesterPods.xcodeproj'
|
2019-05-23 17:02:23 +03:00
|
|
|
|
2020-12-22 19:33:56 +03:00
|
|
|
fabric_enabled = false
|
|
|
|
|
|
|
|
# To use fabric: set the environment variable `USE_FABRIC` to 1, like below
|
|
|
|
# $ USE_FABRIC=1 bundle exec pod install
|
|
|
|
# or
|
|
|
|
# $ export USE_FABRIC=1
|
|
|
|
# $ bundle exec pod install
|
|
|
|
if ENV['USE_FABRIC'] == '1'
|
|
|
|
puts "Building RNTester with Fabric enabled."
|
|
|
|
fabric_enabled = true
|
|
|
|
end
|
|
|
|
|
2020-08-20 03:54:30 +03:00
|
|
|
prefix_path = "../.."
|
2020-12-22 19:33:56 +03:00
|
|
|
use_react_native!(path: prefix_path, fabric_enabled: fabric_enabled, hermes_enabled: ENV['USE_HERMES'] == '1')
|
2020-08-20 03:54:30 +03:00
|
|
|
pod 'ReactCommon/turbomodule/samples', :path => "#{prefix_path}/ReactCommon"
|
2018-04-13 01:54:36 +03:00
|
|
|
|
2019-04-23 15:44:07 +03:00
|
|
|
# Additional Pods which aren't included in the default Podfile
|
2020-08-20 03:54:30 +03:00
|
|
|
pod 'React-RCTPushNotification', :path => "#{prefix_path}/Libraries/PushNotificationIOS"
|
2020-10-31 09:00:34 +03:00
|
|
|
pod 'Yoga', :path => "#{prefix_path}/ReactCommon/yoga", :modular_headers => true
|
2019-04-23 15:44:07 +03:00
|
|
|
# Additional Pods which are classed as unstable
|
2018-04-13 01:54:36 +03:00
|
|
|
end
|
2019-06-29 05:12:42 +03:00
|
|
|
|
|
|
|
target 'RNTester' do
|
|
|
|
pods()
|
2020-12-04 02:58:36 +03:00
|
|
|
if !USE_FRAMEWORKS
|
|
|
|
use_flipper!
|
|
|
|
end
|
2019-06-29 05:12:42 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
target 'RNTesterUnitTests' do
|
|
|
|
pods()
|
2020-02-02 02:03:28 +03:00
|
|
|
pod 'React-RCTTest', :path => "./RCTTest"
|
2019-06-29 05:12:42 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
target 'RNTesterIntegrationTests' do
|
|
|
|
pods()
|
2020-02-02 02:03:28 +03:00
|
|
|
pod 'React-RCTTest', :path => "./RCTTest"
|
2019-06-29 05:12:42 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
post_install do |installer|
|
2021-02-24 23:20:54 +03:00
|
|
|
react_native_post_install(installer)
|
2019-06-29 05:12:42 +03:00
|
|
|
end
|