Skip to content

Commit

Permalink
update logger to latest (#8)
Browse files Browse the repository at this point in the history
* chore: update dependencies

* chore: update deprecated
  • Loading branch information
saileshbro authored Jun 20, 2024
1 parent f15a326 commit 06a7f66
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions lib/src/crashlytics_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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'));
}
Expand All @@ -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 {
Expand Down
10 changes: 5 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06a7f66

Please sign in to comment.