From 9d0feeed6a6aa4e88a115e06778f215faaefc3a8 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 28 Jun 2020 00:59:58 -0700 Subject: Disable bugsnag --- app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt | 2 +- app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt | 12 ++++++------ .../main/kotlin/com/pitchedapps/frost/utils/Prefs.kt | 18 +++++++++--------- 3 files changed, 16 insertions(+), 16 deletions(-) (limited to 'app/src/main/kotlin/com') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt index 34808e65..247011ac 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt @@ -75,7 +75,7 @@ class FrostApp : Application(), KoinComponent { prefs = get() showcasePrefs = get() initPrefs() - initBugsnag() +// initBugsnag() L.i { "Begin Frost for Facebook" } FrostPglAdBlock.init(this) diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt index 974047e8..7b1532b7 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt @@ -63,12 +63,12 @@ object L : KauLogger("Frost") { if (BuildConfig.DEBUG || !hasAnalytics()) { super.logImpl(priority, message, t) } else { - if (message != null) { - Bugsnag.leaveBreadcrumb(message) - } - if (t != null) { - Bugsnag.notify(t) - } +// if (message != null) { +// Bugsnag.leaveBreadcrumb(message) +// } +// if (t != null) { +// Bugsnag.notify(t) +// } } } } diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt index 1dfd6871..5fd11005 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt @@ -165,15 +165,15 @@ class Prefs(factory: KPrefFactory) : KPref("${BuildConfig.APPLICATION_ID}.prefs" var verboseLogging: Boolean by kpref("verbose_logging", false) var analytics: Boolean by kpref("analytics", false) { - if (!BuildConfig.DEBUG) { - if (it) { - Bugsnag.setAutoCaptureSessions(true) - Bugsnag.enableExceptionHandler() - } else { - Bugsnag.setAutoCaptureSessions(false) - Bugsnag.disableExceptionHandler() - } - } +// if (!BuildConfig.DEBUG) { +// if (it) { +// Bugsnag.setAutoCaptureSessions(true) +// Bugsnag.enableExceptionHandler() +// } else { +// Bugsnag.setAutoCaptureSessions(false) +// Bugsnag.disableExceptionHandler() +// } +// } } var biometricsEnabled: Boolean by kpref("biometrics_enabled", false) -- cgit v1.2.3 From 9a2f0cde424781ae8b33e05efc1a8d6954ece026 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 28 Jun 2020 01:05:39 -0700 Subject: Remove bugsnag imports --- app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt | 1 - app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt | 1 - 2 files changed, 2 deletions(-) (limited to 'app/src/main/kotlin/com') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt index 7b1532b7..67d2f55a 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt @@ -18,7 +18,6 @@ package com.pitchedapps.frost.utils import ca.allanwang.kau.logging.KauLogger import ca.allanwang.kau.logging.KauLoggerExtension -import com.bugsnag.android.Bugsnag import com.pitchedapps.frost.BuildConfig /** diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt index 5fd11005..bfd0d2c0 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt @@ -23,7 +23,6 @@ import ca.allanwang.kau.kpref.KPrefFactory import ca.allanwang.kau.utils.colorToForeground import ca.allanwang.kau.utils.isColorVisibleOn import ca.allanwang.kau.utils.withAlpha -import com.bugsnag.android.Bugsnag import com.pitchedapps.frost.BuildConfig import com.pitchedapps.frost.enums.FACEBOOK_BLUE import com.pitchedapps.frost.enums.FeedSort -- cgit v1.2.3