diff --git a/lib/main.dart b/lib/main.dart index e96ba72f63..b793cc64c6 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -6,11 +6,13 @@ 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 = bool.fromEnvironment("CI", defaultValue: false); + var boolCI = const String.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]);