From 06a7f66601cc85099ed7d7c73876b5e92c5ba94f Mon Sep 17 00:00:00 2001 From: Sailesh Dahal <43571990+saileshbro@users.noreply.github.com> Date: Thu, 20 Jun 2024 19:38:41 +0545 Subject: [PATCH] update logger to latest (#8) * chore: update dependencies * chore: update deprecated --- lib/src/crashlytics_service.dart | 5 +++-- pubspec.yaml | 10 +++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/src/crashlytics_service.dart b/lib/src/crashlytics_service.dart index a15ec4a..0411628 100644 --- a/lib/src/crashlytics_service.dart +++ b/lib/src/crashlytics_service.dart @@ -39,7 +39,7 @@ class CrashlyticsService { required bool logwarnings, }) async { try { - if (level == Level.error || level == Level.wtf) { + if (level == Level.error || level == Level.wtf || level == Level.fatal) { await _crashlyticsService.recordError( lines.join('\n'), stacktrace, @@ -56,6 +56,7 @@ class CrashlyticsService { } if (level == Level.info || level == Level.verbose || + level == Level.trace || level == Level.debug) { await _crashlyticsService.log(lines.join('\n')); } @@ -72,7 +73,7 @@ class CrashlyticsService { } } - // Be very careful when you excute this code it will crash the app + // Be very careful when you execute this code it will crash the app // So, be sure to remove it after usage void crashApp() { try { diff --git a/pubspec.yaml b/pubspec.yaml index d96e6a8..aec0060 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,16 +6,16 @@ repository: https://github.com/Stacked-Org/crashlytics.git issue_tracker: https://github.com/Stacked-Org/framework/issues environment: - sdk: '>=2.15.0 <3.0.0' - flutter: '>=1.17.0' + sdk: ">=2.15.0 <3.0.0" + flutter: ">=1.17.0" dependencies: flutter: sdk: flutter - firebase_core: ^2.4.1 - firebase_crashlytics: ^3.0.10 - logger: ^1.0.0 + firebase_core: ^2.32.0 + firebase_crashlytics: ^3.5.7 + logger: ^2.3.0 dev_dependencies: firebase_core_platform_interface: ^5.0.0