Skip to content

Commit

Permalink
Added logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-f committed Sep 18, 2023
1 parent 95d7221 commit b3e1047
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import 'package:lantern/common/common.dart';
Future<void> 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();
}
Expand Down

0 comments on commit b3e1047

Please sign in to comment.