Skip to content

Commit

Permalink
Allow to control flipper with an Env var (#39261)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #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
  • Loading branch information
cipolleschi authored and facebook-github-bot committed Sep 5, 2023
1 parent 4bc089a commit 89dfc08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/rn-tester/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89dfc08

Please sign in to comment.