Updated ACRA.
This commit is contained in:
parent
4c314683c7
commit
3ca03faa9b
3 changed files with 3 additions and 3 deletions
|
@ -66,7 +66,7 @@ dependencies {
|
|||
implementation 'com.android.support:cardview-v7:27.1.1'
|
||||
|
||||
// https://github.com/ACRA/acra
|
||||
implementation 'ch.acra:acra:4.9.2'
|
||||
implementation 'ch.acra:acra:4.11'
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.acra.annotation.ReportsCrashes
|
|||
|
||||
@ReportsCrashes(mailTo = "erik@thauvin.net",
|
||||
mode = ReportingInteractionMode.DIALOG,
|
||||
reportSenderFactoryClasses = arrayOf(CrashEmailFactory::class),
|
||||
reportSenderFactoryClasses = [CrashEmailFactory::class],
|
||||
reportDialogClass = CrashReportActivity::class)
|
||||
open class App : Application() {
|
||||
override fun attachBaseContext(base: Context) {
|
||||
|
|
|
@ -48,7 +48,7 @@ class CrashEmail(private val config: ACRAConfiguration) : ReportSender {
|
|||
}
|
||||
|
||||
private fun buildBody(errorContent: CrashReportData): String {
|
||||
var fields: Set<ReportField> = config.reportFields
|
||||
var fields: Set<ReportField> = config.reportContent()
|
||||
if (fields.isEmpty()) {
|
||||
fields = ImmutableSet(*ACRAConstants.DEFAULT_MAIL_REPORT_FIELDS)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue