Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
fix proguard for butterknife
Browse files Browse the repository at this point in the history
  • Loading branch information
feilongfl committed Feb 5, 2020
1 parent 9c50a42 commit 5fad5ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ public static java.lang.String TABLENAME;
-dontwarn org.greenrobot.greendao.rx.**

# ButterKnife
-keep public class * implements butterknife.internal.ViewBinder { public <init>(); }
# Retain generated class which implement Unbinder.
-keep public class * implements butterknife.Unbinder { public <init>(**, android.view.View); }

# Prevent obfuscation of types which use ButterKnife annotations since the simple name
# is used to reflectively look up the generated ViewBinding.
-keep class butterknife.*
-keepclasseswithmembernames class * { @butterknife.* <methods>; }
-keepclasseswithmembernames class * { @butterknife.* <fields>; }
Expand Down

0 comments on commit 5fad5ab

Please sign in to comment.