Skip to content

Commit aefa4f3

Browse files
leotmCopilot
andcommitted
Refactor Podfile CI env var detection defensively
- match common CI platforms setting 'CI' to 'true' - modern/popular CI convention - OS/shell env vars always strings - handle unset OS/shell env vars - Ruby returns `nil` object (`NilClass`) - Ruby method `.to_s` handles `nil` to empty string `""` Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2cfe1cb commit aefa4f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ENV['RCT_NEW_ARCH_ENABLED'] = '1'
1414
# dependencies: {
1515
# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
1616
# ```
17-
disabled = ENV['CI'] || ENV['NO_FLIPPER'] == '1'
17+
disabled = ENV['CI'].to_s.downcase == 'true' || ENV['NO_FLIPPER'] == '1'
1818
flipper_config = disabled ? FlipperConfiguration.disabled : FlipperConfiguration.enabled(["Debug"], { 'Flipper' => flipperkit_version })
1919

2020
linkage = ENV['USE_FRAMEWORKS']

0 commit comments

Comments
 (0)