@@ -58,11 +58,6 @@ import logcat.LogPriority
5858import logcat.LogcatLogger
5959import mihon.core.migration.Migrator
6060import mihon.core.migration.migrations.migrations
61- import org.acra.config.httpSender
62- import org.acra.config.scheduler
63- import org.acra.data.StringFormat
64- import org.acra.ktx.initAcra
65- import org.acra.sender.HttpSender
6661import org.conscrypt.Conscrypt
6762import tachiyomi.core.common.i18n.stringResource
6863import tachiyomi.core.common.preference.Preference
@@ -87,7 +82,6 @@ class App : Application(), DefaultLifecycleObserver, SingletonImageLoader.Factor
8782 override fun onCreate () {
8883 super <Application >.onCreate()
8984
90- setupAcra()
9185 GlobalExceptionHandler .initialize(applicationContext, CrashActivity ::class .java)
9286
9387 // TLS 1.3 support for Android < 10
@@ -234,31 +228,6 @@ class App : Application(), DefaultLifecycleObserver, SingletonImageLoader.Factor
234228 return super .getPackageName()
235229 }
236230
237- private fun setupAcra () {
238- if (BuildConfig .ACRA_URI .isNotEmpty() && isPreviewBuildType || isReleaseBuildType) {
239- initAcra {
240- buildConfigClass = BuildConfig ::class .java
241- excludeMatchingSharedPreferencesKeys = listOf (
242- Preference .privateKey(" .*" ), " .*username.*" , " .*password.*" , " .*token.*" ,
243- )
244-
245- reportFormat = StringFormat .JSON
246- httpSender {
247- uri = BuildConfig .ACRA_URI
248- basicAuthLogin = BuildConfig .ACRA_LOGIN
249- basicAuthPassword = BuildConfig .ACRA_PASSWORD
250- httpMethod = HttpSender .Method .POST
251- }
252-
253- scheduler {
254- requiresBatteryNotLow = true
255- requiresDeviceIdle = true
256- requiresNetworkType = JobInfo .NETWORK_TYPE_UNMETERED
257- }
258- }
259- }
260- }
261-
262231 private fun setupNotificationChannels () {
263232 try {
264233 Notifications .createChannels(this )
0 commit comments