Skip to content

Reports are sent via the SenderService in a separate process. - #344

Merged
william-ferguson-au merged 3 commits into
masterfrom
romansl-master
Jan 4, 2016
Merged

Reports are sent via the SenderService in a separate process.#344
william-ferguson-au merged 3 commits into
masterfrom
romansl-master

Conversation

@william-ferguson-au

Copy link
Copy Markdown
Member

This is an enhanced version of #329
And fixes the issue in #327

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.

…y default) started in another process.

ReportSenders are now configured via configuring ReportSenderFactory classes in ErrorReporter (NB this is a BREAKING API change).
Moving CrashReport* classes to org.acra.common package.
william-ferguson-au added a commit that referenced this pull request Jan 4, 2016
SendWorker now works in the separate process service.
@william-ferguson-au
william-ferguson-au merged commit cf3cf27 into master Jan 4, 2016
@william-ferguson-au
william-ferguson-au deleted the romansl-master branch January 4, 2016 13:55
@william-ferguson-au william-ferguson-au changed the title SendWorker now works in the separate process service. Reports are sent via the SenderService in a separate process. Jan 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant