withAttachmentUris

fun withAttachmentUris(vararg attachmentUris: String): CoreConfigurationBuilder

Allows to attach files to crash reports.

ACRA contains a file provider under the following Uri: content://[applicationId].acra/[Directory]/[Path] where [applicationId] is your application package name, [Directory] is one of the enum constants in {@link Directory} in lower case and [Path] is the relative path to the file in that directory e.g. content://org.acra.test.acra/files/thisIsATest.txt

Side effects:
  • POST mode: requests will be sent with content-type multipart/form-data
  • PUT mode: There will be additional requests with the attachments. Naming scheme: [report-id]-[filename]
  • EMAIL mode: Some email clients do not support attachments, so some email may lack these attachments. Note that attachments might be readable to email clients when they are sent.

Since

4.9.3

Return

this instance

Parameters

attachmentUris

uris to be attached to crash reports.