diff --git a/app/build.gradle b/app/build.gradle index ff836a245..99a3f444d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -208,7 +208,8 @@ dependencies { implementation 'com.jakewharton.timber:timber:4.7.1' // Crash reports - implementation 'ch.acra:acra:4.9.2' + final acra_version = '5.5.0' + implementation "ch.acra:acra-http:$acra_version" // UI implementation 'com.dmitrymalkovich.android:material-design-dimens:1.4' diff --git a/app/src/main/java/eu/kanade/tachiyomi/App.kt b/app/src/main/java/eu/kanade/tachiyomi/App.kt index 8400b3eed..4e76f62b9 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/App.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/App.kt @@ -16,20 +16,23 @@ import eu.kanade.tachiyomi.data.preference.getOrDefault import eu.kanade.tachiyomi.ui.security.SecureActivityDelegate import eu.kanade.tachiyomi.util.system.LocaleHelper import org.acra.ACRA -import org.acra.annotation.ReportsCrashes +import org.acra.annotation.AcraCore +import org.acra.annotation.AcraHttpSender +import org.acra.sender.HttpSender import timber.log.Timber import uy.kohesive.injekt.Injekt import uy.kohesive.injekt.api.InjektScope import uy.kohesive.injekt.injectLazy import uy.kohesive.injekt.registry.default.DefaultRegistrar -@ReportsCrashes( - formUri = "http://tachiyomi.kanade.eu/crash_report", - reportType = org.acra.sender.HttpSender.Type.JSON, - httpMethod = org.acra.sender.HttpSender.Method.PUT, +@AcraCore( buildConfigClass = BuildConfig::class, excludeMatchingSharedPreferencesKeys = [".*username.*", ".*password.*", ".*token.*"] ) +@AcraHttpSender( + uri = "http://tachiyomi.kanade.eu/crash_report", + httpMethod = HttpSender.Method.PUT +) open class App : Application(), LifecycleObserver { override fun onCreate() {