Skip to content

Commit

Permalink
Fix MqCrashlytics setCrashlyticsCollectionEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Eldar2021 committed Aug 11, 2024
1 parent 2685cf5 commit 3247f2a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/lib/core/crashlytics/mq_crashlytics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ final class MqCrashlytics {
}

static Future<void> setCrashlyticsCollectionEnabled({required bool enabled}) async {
if (kDebugMode) return;
return crashlytics.setCrashlyticsCollectionEnabled(enabled);
}

Expand Down
2 changes: 1 addition & 1 deletion app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Future<void> main({AppConfig? appConfig}) async {
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
await FirebaseAnalytics.instance.setAnalyticsCollectionEnabled(true);
await FirebaseAnalytics.instance.setAnalyticsCollectionEnabled(!kDebugMode);

await MqCrashlytics.setCrashlyticsCollectionEnabled(enabled: !kDebugMode);

Expand Down

0 comments on commit 3247f2a

Please sign in to comment.