aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-06-28 00:59:58 -0700
committerAllan Wang <me@allanwang.ca>2020-06-28 00:59:58 -0700
commit9d0feeed6a6aa4e88a115e06778f215faaefc3a8 (patch)
treef9beb137ec4f375c57ab2c3d322d04b0b9bc43e6 /app/src/main/kotlin/com/pitchedapps
parentc8db2d1d9a3540a39764808b86ddfb92ef97a0e2 (diff)
downloadfrost-9d0feeed6a6aa4e88a115e06778f215faaefc3a8.tar.gz
frost-9d0feeed6a6aa4e88a115e06778f215faaefc3a8.tar.bz2
frost-9d0feeed6a6aa4e88a115e06778f215faaefc3a8.zip
Disable bugsnag
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt2
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt12
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt18
3 files changed, 16 insertions, 16 deletions
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)