aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/AndroidManifest.xml3
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt33
2 files changed, 0 insertions, 36 deletions
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" />
</provider>
- <meta-data
- android:name="com.bugsnag.android.API_KEY"
- android:value="83cf680ed01a6fda10fe497d1c0962bb" />
</application>
</manifest> \ 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<KPrefFactory> {