Skip to content

RuntimeException when implementing proguard with EventBus AsyncExecutor #131

@z0lope0z

Description

@z0lope0z

Hi! I'm not sure how to file reports and I'm not sure what's going on as well.
Basically, I'm currently implementing proguard in my project and this line of code fails:

...
 AsyncExecutor.builder().failureEventType(FailedEvent.class)
...

throwing the exception (here):

...
java.lang.RuntimeException: Failure event class must have a constructor with one parameter of type Throwable
    at de.greenrobot.event.util.AsyncExecutor.<init>(AsyncExecutor.java:104)
    at de.greenrobot.event.util.AsyncExecutor.<init>(AsyncExecutor.java:32)
...

unless I add

-keep class FailedEvent { *; }

to my proguard-rules.txt

If it's an expected behavior, should the best course of action be to include it in the wiki?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions