Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Reports are sent via the SenderService in a separate process. #344
It introduces SenderService that performs all report sending and by default performs it in another process (which avoids the problems with OKHttp trying to start a Thread while the VM is shutting down).
It doesn't enable the UncaughtExceptionHandler for ACRA if the current process is the SenderService. This avoids infinite loop crashes on start.
It allows declarative or programmatic config of ReportSenderFactories.
NOTE: It has a BREAKING API change in ErrorReport for config of ReportSenders, because you need to provide a ReportSenderFactory CLASS rather than a ReportSender instance so that we can correctly configure the SenderService.