aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-01-10 17:43:17 -0800
committerAllan Wang <me@allanwang.ca>2021-01-10 17:43:17 -0800
commit69a6d5742b1c7ad43e174d7f28027185e084d451 (patch)
tree33d255de506a12e1a03707cb5cf819a5694cdca2 /app
parent60466a9a634a4e18e9f442e9ed5cfd4b38191727 (diff)
downloadfrost-69a6d5742b1c7ad43e174d7f28027185e084d451.tar.gz
frost-69a6d5742b1c7ad43e174d7f28027185e084d451.tar.bz2
frost-69a6d5742b1c7ad43e174d7f28027185e084d451.zip
Delete bugsnag logic
Diffstat (limited to 'app')
-rw-r--r--app/build.gradle4
-rw-r--r--app/src/main/AndroidManifest.xml3
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/FrostApp.kt33
3 files changed, 0 insertions, 40 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 43391c72..1a368f39 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,5 +1,4 @@
apply plugin: 'com.android.application'
-apply plugin: 'com.bugsnag.android.gradle'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
@@ -139,7 +138,6 @@ android {
signingConfig signingConfigs.debug
resValue "string", "frost_name", "Frost Debug"
resValue "string", "frost_web", "Frost Web Debug"
- ext.enableBugsnag = false
kotlinOptions.freeCompilerArgs += compilerArgs
}
@@ -302,8 +300,6 @@ dependencies {
testImplementation "com.squareup.okhttp3:mockwebserver:${Versions.okhttp}"
androidTestImplementation "com.squareup.okhttp3:mockwebserver:${Versions.okhttp}"
- implementation kau.Dependencies.bugsnag
-
implementation "com.davemorrissey.labs:subsampling-scale-image-view:${Versions.scaleImageView}"
implementation "androidx.room:room-ktx:${Versions.room}"
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> {