diff --git a/packages/flutterfire_cli/lib/src/common/utils.dart b/packages/flutterfire_cli/lib/src/common/utils.dart index b4edb765..dd9119fd 100644 --- a/packages/flutterfire_cli/lib/src/common/utils.dart +++ b/packages/flutterfire_cli/lib/src/common/utils.dart @@ -17,6 +17,7 @@ import 'dart:io'; import 'package:ansi_styles/ansi_styles.dart'; +import 'package:ci/ci.dart' as ci; import 'package:interact/interact.dart' as interact; import 'package:path/path.dart' show relative, normalize, windows, joinAll; import 'platform.dart'; @@ -48,11 +49,7 @@ extension Let on T? { } bool get isCI { - final keys = currentPlatform.environment.keys; - return keys.contains('CI') || - keys.contains('CONTINUOUS_INTEGRATION') || - keys.contains('BUILD_NUMBER') || - keys.contains('RUN_ID'); + return ci.isCI; } int get terminalWidth { diff --git a/packages/flutterfire_cli/pubspec.yaml b/packages/flutterfire_cli/pubspec.yaml index 71c755b9..7d375d31 100644 --- a/packages/flutterfire_cli/pubspec.yaml +++ b/packages/flutterfire_cli/pubspec.yaml @@ -9,6 +9,7 @@ environment: dependencies: ansi_styles: ^0.3.0 args: ^2.3.0 + ci: ^0.1.0 cli_util: ^0.3.5 deep_pick: ^0.10.0 file: ^6.1.2