Skip to content

Commit

Permalink
Add proguard rules for ButterKnife in sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed Nov 30, 2015
1 parent 40cde15 commit ddd67e1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sample/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,14 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# ButterKnife
-keep class butterknife.** { *; }
-dontwarn butterknife.internal.**
-keep class **$$ViewInjector { *; }
-keepclasseswithmembernames class * {
@butterknife.* <fields>;
}
-keepclasseswithmembernames class * {
@butterknife.* <methods>;
}

0 comments on commit ddd67e1

Please sign in to comment.