some cleanup

This commit is contained in:
IndusAryan 2023-11-21 17:18:36 +05:30
parent 5a20e5e1a1
commit 14ca70a5f5

View file

@ -38,16 +38,15 @@ import kotlin.concurrent.thread
import kotlin.system.exitProcess import kotlin.system.exitProcess
class CustomReportSender : ReportSender { class CustomReportSender : ReportSender {
// Sends crash logs to google forms, might give a false positive of a google tracker in app scans
// Sends all your crashes to google forms
override fun send(context: Context, errorContent: CrashReportData) { override fun send(context: Context, errorContent: CrashReportData) {
println("Sending Crash Report") println("Sending Crash Report")
val url = if (SettingsFragment.isTrueTvSettings()) { val url = if (SettingsFragment.isTrueTvSettings()) {
"Google Form URL for TV's" "FORM_URL_FOR_TVs"
} else { } else {
"For Phones" "FORM_URL_FOR_PHONES"
} }
val data = mapOf( val data = mapOf(
@ -136,13 +135,6 @@ class AcraApplication : Application() {
ReportField.ANDROID_VERSION, ReportField.PHONE_MODEL, ReportField.ANDROID_VERSION, ReportField.PHONE_MODEL,
ReportField.STACK_TRACE, ReportField.STACK_TRACE,
) )
// removed this due to bug when starting the app, moved it to when it actually crashes
//each plugin you chose above can be configured in a block like this:
/*toast {
text = getString(R.string.acra_report_toast)
//opening this block automatically enables the plugin.
}*/
} }
} }