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
This commit is contained in:
Riccardo Cipolleschi
2023-09-05 04:08:02 -07:00
committed by Facebook GitHub Bot
parent 4bc089a93d
commit 89dfc082fd
+3 -1
View File
@@ -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