Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

Commit

Permalink
Add config for EventBus
Browse files Browse the repository at this point in the history
  • Loading branch information
hvisser committed Oct 9, 2014
1 parent 2d75d68 commit 2f05232
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion squadleader/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ android {
'src/rules/android-dart.pro',
'src/rules/okio.pro',
'src/rules/retrofit.pro',
'src/rules/okhttp.pro'
'src/rules/okhttp.pro',
'src/rules/eventbus.pro'
}
buildTypes {
debug {
Expand Down
4 changes: 4 additions & 0 deletions squadleader/src/rules/eventbus.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Rules for EventBus https://github.com/greenrobot/EventBus
-keepclassmembers class ** {
public void onEvent*(**);
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public void testOttoProduceAnnotation() {
public void testKeepMethod() {
}

public void onEvent(String dummy) {

}

static final class ButterknifeTarget {
@InjectView(R.id.test)
View mTestView;
Expand Down

0 comments on commit 2f05232

Please sign in to comment.