mirror of
https://github.com/GrakovNe/lissen-android.git
synced 2026-07-31 10:28:12 -04:00
Clean up ACRA
This commit is contained in:
@@ -62,12 +62,6 @@ android {
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
val acraReportLogin = "M44DCNA0c1ikg3PA"
|
||||
val acraReportPassword = "AbEG6y3mIwp5Yn9K"
|
||||
|
||||
buildConfigField("String", "ACRA_REPORT_LOGIN", "\"$acraReportLogin\"")
|
||||
buildConfigField("String", "ACRA_REPORT_PASSWORD", "\"$acraReportPassword\"")
|
||||
|
||||
if (project.hasProperty("RELEASE_STORE_FILE")) {
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
|
||||
@@ -3,6 +3,7 @@ package org.grakovne.lissen
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import dagger.hilt.android.HiltAndroidApp
|
||||
import org.acra.ACRA
|
||||
import org.acra.ReportField
|
||||
import org.acra.config.httpSender
|
||||
import org.acra.config.toast
|
||||
@@ -43,6 +44,7 @@ class LissenApplication : Application() {
|
||||
|
||||
private fun initCrashReporting() {
|
||||
initAcra {
|
||||
ACRA.DEV_LOGGING = true
|
||||
sharedPreferencesName = "secure_prefs"
|
||||
|
||||
buildConfigClass = BuildConfig::class.java
|
||||
@@ -50,8 +52,8 @@ class LissenApplication : Application() {
|
||||
|
||||
httpSender {
|
||||
uri = "https://acrarium.grakovne.org/report"
|
||||
basicAuthLogin = BuildConfig.ACRA_REPORT_LOGIN
|
||||
basicAuthPassword = BuildConfig.ACRA_REPORT_PASSWORD
|
||||
basicAuthLogin = "M44DCNA0c1ikg3PA"
|
||||
basicAuthPassword = "AbEG6y3mIwp5Yn9K"
|
||||
httpMethod = HttpSender.Method.POST
|
||||
dropReportsOnTimeout = false
|
||||
tlsProtocols = listOf(TLS.V1_3, TLS.V1_2)
|
||||
|
||||
Reference in New Issue
Block a user