Skip to content

Commit

Permalink
cleaned up error reporting log
Browse files Browse the repository at this point in the history
  • Loading branch information
mickstar committed Feb 15, 2024
1 parent 68abea3 commit a1aed16
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package com.mickstarify.zooforzotero

import android.app.Application
import dagger.hilt.android.HiltAndroidApp
import org.acra.ACRA
import org.acra.ReportField
import org.acra.config.dialog
import org.acra.config.mailSender
import org.acra.data.StringFormat
Expand All @@ -14,8 +16,17 @@ class ZooForZoteroApplication : Application() {

initAcra {
//core configuration:
buildConfigClass = BuildConfig::class.java
reportContent = listOf(
ReportField.APP_VERSION_CODE,
ReportField.ANDROID_VERSION,
ReportField.PHONE_MODEL,
ReportField.CUSTOM_DATA,
ReportField.STACK_TRACE,
ReportField.LOGCAT
)

reportFormat = StringFormat.JSON
excludeMatchingSharedPreferencesKeys = listOf("*")
//each plugin you chose above can be configured in a block like this:

dialog {
Expand Down

0 comments on commit a1aed16

Please sign in to comment.