Files

Report

The report module allows a user to send bug reports.

Once a report is written, and user submits it, it is enqueued into a WorkManager. The report is sent whenever an Internet connection is available. By default, once a report is enqueued, from the user perspective it is considered as sent, and the Bug Report activity will be finished.

Quickstart

  1. Add me.proton.core:report-presentation module.
  2. If you use Hilt, add me.proton.core:report-dagger module.
  3. Optionally, add BugReportActivity to your AndroidManifest.xml file, replacing _ProtonApp_ with Calendar, Drive, Mail or Vpn (by default it uses ProtonTheme):
<activity
    android:name="me.proton.core.report.presentation.ui.BugReportActivity"
    android:theme="@style/ProtonTheme._ProtonApp_"
    tools:replace="android:theme" />
  1. Make sure WorkManager is configured:
  2. Whenever you want to display a Bug Report screen, use ReportOrchestrator.
  3. Refer to ReportsViewModel from CoreExample app for sample usage.