aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/build.gradle4
-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
-rw-r--r--gradle.properties2
5 files changed, 18 insertions, 20 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 12f03b83..c8d46967 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,5 +1,5 @@
apply plugin: 'com.android.application'
-apply plugin: 'com.bugsnag.android.gradle'
+//apply plugin: 'com.bugsnag.android.gradle'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
@@ -350,5 +350,3 @@ task createGithubReleaseApk {
tasks.findByName('testGithubReleaseApk').mustRunAfter 'lintGithubReleaseApk'
tasks.findByName('assembleGithubReleaseApk').mustRunAfter 'testGithubReleaseApk'
}
-
-apply plugin: 'com.bugsnag.android.gradle' \ No newline at end of file
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)
diff --git a/gradle.properties b/gradle.properties
index c06541ab..ebda70b1 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -16,7 +16,7 @@ org.gradle.daemon = true
APP_ID=Frost
APP_GROUP=com.pitchedapps
-KAU=813f386
+KAU=ceed2ad
android.useAndroidX=true
android.enableJetifier=true