Skip to content

Commit 11d2460

Browse files
committed
better handling of ci env flag
1 parent 9030fa9 commit 11d2460

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

FabricExample/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: "org.jetbrains.kotlin.android"
33
apply plugin: "com.facebook.react"
44

55
// Use RNRepo in CI builds
6-
if (System.getenv("CI") == "true") {
6+
if (["1", "true"].contains(System.getenv("CI"))) {
77
apply plugin: "org.rnrepo.tools.prebuilds-plugin"
88
}
99

FabricExample/ios/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require Pod::Executable.execute_command('node', ['-p',
66
)', __dir__]).strip
77

88
# Use RNRepo in CI builds
9-
if ENV['CI'] == 'true'
9+
if %w[1 true].include?(ENV['CI'].to_s.downcase)
1010
require Pod::Executable.execute_command('node', ['-p',
1111
'require.resolve(
1212
"@rnrepo/build-tools/cocoapods-plugin/lib/plugin.rb",
@@ -39,7 +39,7 @@ target 'FabricExample' do
3939
)
4040

4141
post_install do |installer|
42-
if ENV['CI'] == 'true'
42+
if %w[1 true].include?(ENV['CI'].to_s.downcase)
4343
rnrepo_post_install(installer)
4444
end
4545
react_native_post_install(

0 commit comments

Comments
 (0)