diff options
Diffstat (limited to 'app/src/main/kotlin/com')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt | 33 |
1 files changed, 0 insertions, 33 deletions
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<KPrefFactory> { |