diff --git a/packages/rn-tester/Podfile b/packages/rn-tester/Podfile index 116fdb9e4706bd..8ead6c2d6eb1ff 100644 --- a/packages/rn-tester/Podfile +++ b/packages/rn-tester/Podfile @@ -9,6 +9,8 @@ platform :ios, '12.4' install! 'cocoapods', :deterministic_uuids => false USE_FRAMEWORKS = ENV['USE_FRAMEWORKS'] == '1' +IN_CI = ENV['CI'] == 'true' + @prefix_path = "../.." if USE_FRAMEWORKS @@ -16,7 +18,7 @@ if USE_FRAMEWORKS use_frameworks! end -def pods(options = {}) +def pods(options = {}, use_flipper: false) project 'RNTesterPods.xcodeproj' fabric_enabled = true @@ -27,12 +29,12 @@ def pods(options = {}) # Custom fabric component is only supported when using codegen discovery. pod 'MyNativeView', :path => "NativeComponentExample" end - + use_react_native!( path: @prefix_path, fabric_enabled: fabric_enabled, hermes_enabled: hermes_enabled, - flipper_configuration: USE_FRAMEWORKS ? FlipperConfiguration.disabled : FlipperConfiguration.enabled, + flipper_configuration: use_flipper ? FlipperConfiguration.enabled : FlipperConfiguration.disabled, app_path: "#{Dir.pwd}", config_file_dir: "#{Dir.pwd}/node_modules", production: !ENV['PRODUCTION'].nil? @@ -49,7 +51,7 @@ def pods(options = {}) end target 'RNTester' do - pods() + pods({}, :use_flipper => !IN_CI && !USE_FRAMEWORKS) end target 'RNTesterUnitTests' do