From 256b545ad34fc49f223957e59f3da7e38e5c7a10 Mon Sep 17 00:00:00 2001 From: Eldar2021 Date: Sun, 11 Aug 2024 23:25:25 +0600 Subject: [PATCH] Try fix MqCrashlytics android error --- app/lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/main.dart b/app/lib/main.dart index 2e75f606..62267879 100644 --- a/app/lib/main.dart +++ b/app/lib/main.dart @@ -27,9 +27,9 @@ Future 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;