From 2ea34d3fcc6e7475f64118795791a33e188c027b Mon Sep 17 00:00:00 2001 From: Jigar-f Date: Tue, 3 Oct 2023 12:31:51 +0530 Subject: [PATCH] Update main.dart --- lib/main.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index b793cc64c..e5650dc38 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -6,13 +6,11 @@ import 'package:lantern/common/common.dart'; Future main() async { // CI will be true only when running appium test var CI = const String.fromEnvironment('CI', defaultValue: 'false'); - var boolCI = const String.fromEnvironment("ci", defaultValue: 'false'); + var boolCI = const bool.fromEnvironment("ci", defaultValue: false); print('Appium CI is running $CI and bool $boolCI'); - if (CI == 'true') { enableFlutterDriverExtension(); } - WidgetsFlutterBinding.ensureInitialized(); await _initGoogleMobileAds(); await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);