From 69a6d5742b1c7ad43e174d7f28027185e084d451 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 10 Jan 2021 17:43:17 -0800 Subject: Delete bugsnag logic --- app/src/main/AndroidManifest.xml | 3 -- .../main/kotlin/com/pitchedapps/frost/FrostApp.kt | 33 ---------------------- 2 files changed, 36 deletions(-) (limited to 'app/src') diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 96e1d2b3..6faab332 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -190,9 +190,6 @@ android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" /> - \ 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 07158421..fadd7961 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt @@ -24,8 +24,6 @@ import ca.allanwang.kau.kpref.KPrefFactory import ca.allanwang.kau.kpref.KPrefFactoryAndroid import ca.allanwang.kau.logging.KL import ca.allanwang.kau.utils.buildIsLollipopAndUp -import com.bugsnag.android.Bugsnag -import com.bugsnag.android.Configuration import com.pitchedapps.frost.db.FrostDatabase import com.pitchedapps.frost.facebook.FbCookie import com.pitchedapps.frost.prefs.Prefs @@ -71,7 +69,6 @@ class FrostApp : Application(), KoinComponent { } prefs = get() initPrefs() -// initBugsnag() L.i { "Begin Frost for Facebook" } FrostPglAdBlock.init(this) @@ -123,36 +120,6 @@ class FrostApp : Application(), KoinComponent { prefs.lastLaunch = System.currentTimeMillis() } - private fun initBugsnag() { - if (BuildConfig.DEBUG) { - return - } - if (!BuildConfig.APPLICATION_ID.startsWith("com.pitchedapps.frost")) { - return - } - val version = BuildUtils.match(BuildConfig.VERSION_NAME) - ?: return L.d { "Bugsnag disabled for ${BuildConfig.VERSION_NAME}" } - val config = Configuration("83cf680ed01a6fda10fe497d1c0962bb").apply { - appVersion = version.versionName - releaseStage = BuildUtils.getStage(BuildConfig.BUILD_TYPE) - enabledReleaseStages = BuildUtils.getAllStages() - autoTrackSessions = prefs.analytics - autoDetectErrors = prefs.analytics - } - Bugsnag.start(this, config) - L.hasAnalytics = { prefs.analytics } - Bugsnag.setUser(prefs.frostId, null, null) - Bugsnag.addMetadata("Build", "Application", BuildConfig.APPLICATION_ID) - Bugsnag.addMetadata("Build", "Version", BuildConfig.VERSION_NAME) - - Bugsnag.addOnError { event -> - when { - event.originalError?.stackTrace?.any { it.className.contains("XposedBridge") } == true -> false - else -> true - } - } - } - companion object { fun prefFactoryModule(): Module = module { single { -- cgit v1.2.3