Butter Knife ProGuard rules

Butter Knife - library that bind Android views and callbacks to fields and methods.

Annotate fields with @BindView and a view ID for Butter Knife to find and automatically cast the corresponding view in your layout.

ProGuard rules for Butter Knife

Add the following lines to your ProGuard configuration proguard.cfg file in project.

-keep class butterknife.** { *; }
-dontwarn butterknife.internal.**
-keep class **$$ViewBinder { *; }
-keepclasseswithmembernames class * {
    @butterknife.* ;
}
-keepclasseswithmembernames class * {
    @butterknife.* ;
}

For more information about Butter Knife please see the website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules