mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Remove arca in favor of crashlytics
This commit is contained in:
parent
a15c4d60eb
commit
cd699a17dc
4 changed files with 16 additions and 31 deletions
|
@ -32,10 +32,6 @@ import eu.kanade.tachiyomi.util.system.localeContext
|
|||
import eu.kanade.tachiyomi.util.system.notification
|
||||
import kotlinx.coroutines.flow.launchIn
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
import org.acra.ACRA
|
||||
import org.acra.config.httpSender
|
||||
import org.acra.data.StringFormat
|
||||
import org.acra.ktx.initAcra
|
||||
import org.conscrypt.Conscrypt
|
||||
import timber.log.Timber
|
||||
import uy.kohesive.injekt.Injekt
|
||||
|
@ -44,13 +40,6 @@ import uy.kohesive.injekt.injectLazy
|
|||
import uy.kohesive.injekt.registry.default.DefaultRegistrar
|
||||
import java.security.Security
|
||||
|
||||
// @ReportsCrashes(
|
||||
// formUri = "https://collector.tracepot.com/e90773ff",
|
||||
// reportType = org.acra.sender.HttpSender.Type.JSON,
|
||||
// httpMethod = org.acra.sender.HttpSender.Method.PUT,
|
||||
// buildConfigClass = BuildConfig::class,
|
||||
// excludeMatchingSharedPreferencesKeys = [".*username.*", ".*password.*", ".*token.*"]
|
||||
// )
|
||||
open class App : Application(), DefaultLifecycleObserver {
|
||||
|
||||
val preferences: PreferencesHelper by injectLazy()
|
||||
|
@ -77,7 +66,6 @@ open class App : Application(), DefaultLifecycleObserver {
|
|||
Injekt.importModule(AppModule(this))
|
||||
|
||||
CoilSetup(this)
|
||||
setupAcra()
|
||||
setupNotificationChannels()
|
||||
|
||||
ProcessLifecycleOwner.get().lifecycle.addObserver(this)
|
||||
|
@ -140,19 +128,6 @@ open class App : Application(), DefaultLifecycleObserver {
|
|||
SourcePresenter.onLowMemory()
|
||||
}
|
||||
|
||||
protected open fun setupAcra() {
|
||||
initAcra {
|
||||
reportFormat = StringFormat.JSON
|
||||
buildConfigClass = BuildConfig::class.java
|
||||
excludeMatchingSharedPreferencesKeys = listOf(".*username.*", ".*password.*", ".*token.*")
|
||||
httpSender {
|
||||
uri = "https://collector.tracepot.com/e90773ff"
|
||||
httpMethod = org.acra.sender.HttpSender.Method.PUT
|
||||
}
|
||||
}
|
||||
ACRA.init(this)
|
||||
}
|
||||
|
||||
protected open fun setupNotificationChannels() {
|
||||
Notifications.createChannels(this)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue