From 89dfc082fd2461782079d772d5bdee7c4027f2c6 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Tue, 5 Sep 2023 04:08:02 -0700 Subject: [PATCH] Allow to control flipper with an Env var (#39261) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39261 This change allow us to control whether we want to install flipper or not in RNTester using an env var. This is just a simple quality of life change to speed up local testing. ## Changelog: [Internal] - Allow to control whether to install Flipper or not from an env variable Reviewed By: dmytrorykun Differential Revision: D48907743 fbshipit-source-id: ef0f9362890e2d66be55018622f9b3bf9620bd95 --- packages/rn-tester/Podfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/rn-tester/Podfile b/packages/rn-tester/Podfile index b851c5eaadeb58..6c278245086cd9 100644 --- a/packages/rn-tester/Podfile +++ b/packages/rn-tester/Podfile @@ -32,7 +32,9 @@ if USE_FRAMEWORKS use_frameworks! :linkage => linkage.to_sym end -def pods(target_name, options = {}, use_flipper: !IN_CI && !USE_FRAMEWORKS) +$shouldUseFlipper = ENV['USE_FLIPPER'] ? ENV['USE_FLIPPER'] == '1' : !IN_CI && !USE_FRAMEWORKS + +def pods(target_name, options = {}, use_flipper: $shouldUseFlipper) project 'RNTesterPods.xcodeproj' fabric_enabled = true