feat: ACRA
This commit is contained in:
@@ -83,4 +83,7 @@ dependencies {
|
||||
|
||||
implementation(libs.compose)
|
||||
|
||||
implementation(libs.commons.text)
|
||||
|
||||
implementation(libs.acra.http)
|
||||
}
|
||||
@@ -5,6 +5,7 @@
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
|
||||
<application
|
||||
android:name=".ui.UNNApp"
|
||||
android:allowBackup="true"
|
||||
android:label="@string/app_name"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package ru.sweetbread.unn.ui
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import org.acra.BuildConfig
|
||||
import org.acra.config.httpSender
|
||||
import org.acra.data.StringFormat
|
||||
import org.acra.ktx.initAcra
|
||||
import org.acra.sender.HttpSender
|
||||
|
||||
class UNNApp : Application() {
|
||||
override fun attachBaseContext(base: Context) {
|
||||
super.attachBaseContext(base)
|
||||
|
||||
initAcra {
|
||||
//core configuration:
|
||||
buildConfigClass = BuildConfig::class.java
|
||||
reportFormat = StringFormat.JSON
|
||||
httpSender {
|
||||
uri = "/report"
|
||||
basicAuthLogin = "5Fh9roh02J2BUyNl"
|
||||
basicAuthPassword = "tTWalio7NVosHohT"
|
||||
httpMethod = HttpSender.Method.POST
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user