From b3e1047a4b7cea27268055166bc4bb8a084d1d9a Mon Sep 17 00:00:00 2001 From: Jigar-f Date: Mon, 18 Sep 2023 11:49:10 +0530 Subject: [PATCH] Added logs. --- Makefile | 4 ++-- lib/main.dart | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ba934c341..60f66b724 100644 --- a/Makefile +++ b/Makefile @@ -291,13 +291,13 @@ $(MOBILE_TEST_APK) $(MOBILE_TESTS_APK): $(MOBILE_SOURCES) $(MOBILE_ANDROID_LIB) dart-defines-debug: @DART_DEFINES="$(CIBASE)"; \ - echo "$$DART_DEFINES" + printf "$$DART_DEFINES" do-android-debug: $(MOBILE_SOURCES) $(MOBILE_ANDROID_LIB) @ln -fs $(MOBILE_DIR)/gradle.properties . && \ DART_DEFINES=`make dart-defines-debug` && \ echo "Value of DART_DEFINES is: $$DART_DEFINES" && \ - CI="$$CI" + CI="$$CI" && \ echo "Value of CI is: $$CI" && \ $(GRADLE) -Pdart-defines="$$DART_DEFINES" -PlanternVersion=$(DEBUG_VERSION) -PddClientToken=$$DD_CLIENT_TOKEN -PddApplicationID=$$DD_APPLICATION_ID \ -PproServerUrl=$(PRO_SERVER_URL) -PpaymentProvider=$(PAYMENT_PROVIDER) -Pcountry=$(COUNTRY) \ diff --git a/lib/main.dart b/lib/main.dart index b3fc9ede7..e96ba72f6 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -6,7 +6,8 @@ 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'); - print('Appium CI is running $CI'); + var boolCI = bool.fromEnvironment("CI", defaultValue: false); + print('Appium CI is running $CI and bool $boolCI'); if (CI == 'true') { enableFlutterDriverExtension(); }