Skip to content

Commit

Permalink
Try fix MqCrashlytics android error
Browse files Browse the repository at this point in the history
  • Loading branch information
Eldar2021 committed Aug 11, 2024
1 parent 3247f2a commit 256b545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ Future<void> main({AppConfig? appConfig}) async {
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
await FirebaseAnalytics.instance.setAnalyticsCollectionEnabled(!kDebugMode);
await FirebaseAnalytics.instance.setAnalyticsCollectionEnabled(kReleaseMode);

await MqCrashlytics.setCrashlyticsCollectionEnabled(enabled: !kDebugMode);
await MqCrashlytics.setCrashlyticsCollectionEnabled(enabled: kReleaseMode);

FlutterError.onError = MqCrashlytics.recordFlutterError;

Expand Down

0 comments on commit 256b545

Please sign in to comment.