From 1a97cdf91d598fee0b307bc3f747e28d74ed97f0 Mon Sep 17 00:00:00 2001 From: Aunali321 Date: Sun, 16 Oct 2022 23:54:07 +0530 Subject: [PATCH] refactor: remove useless prints. --- lib/main.dart | 10 +++------- lib/services/manager_api.dart | 2 -- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 1edfe987..4862ea73 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -25,7 +25,7 @@ Future main() async { await locator().initialize(apiUrl); bool isSentryEnabled = locator().isSentryEnabled(); bool isCrashlyticsEnabled = locator().isCrashlyticsEnabled(); - // Remove this line if you are building from source and don't have firebase config + // Remove this section if you are building from source and don't have firebase config if (isCrashlyticsEnabled) { await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, @@ -41,11 +41,11 @@ Future main() async { await locator().initialize(); tz.initializeTimeZones(); - // Remove this line if you are building from source and don't have sentry configured + // Remove this section if you are building from source and don't have sentry configured await SentryFlutter.init( (options) { options - ..dsn = isSentryEnabled ? Env.sentry_dsn : '' + ..dsn = isSentryEnabled ? Env.sentryDSN : '' ..environment = 'alpha' ..release = '0.1' ..tracesSampleRate = 1.0 @@ -53,18 +53,14 @@ Future main() async { ..enableOutOfMemoryTracking = true ..sampleRate = isSentryEnabled ? 1.0 : 0.0 ..beforeSend = (event, hint) { - print('isSentryEnabled: $isSentryEnabled'); if (isSentryEnabled) { - print("Sentry event sent"); return event; } else { - print("Sentry is disabled"); return null; } } as BeforeSendCallback?; }, appRunner: () { - // Pass all uncaught errors from the framework to Crashlytics. if (isCrashlyticsEnabled) { FlutterError.onError = FirebaseCrashlytics.instance.recordFlutterError; } diff --git a/lib/services/manager_api.dart b/lib/services/manager_api.dart index 4eecfcc9..21b0b611 100644 --- a/lib/services/manager_api.dart +++ b/lib/services/manager_api.dart @@ -88,7 +88,6 @@ class ManagerAPI { Future setSentryStatus(bool value) async { await _prefs.setBool('sentryEnabled', value); - print('Sentry status: $value'); } bool isCrashlyticsEnabled() { @@ -97,7 +96,6 @@ class ManagerAPI { Future setCrashlyticsStatus(bool value) async { await _prefs.setBool('crashlyticsEnabled', value); - print('Crashlytics status: $value'); } List getPatchedApps() {