LoginSignup
9
7

More than 5 years have passed since last update.

ButterKnifeを使ったときのproguardの記述

Last updated at Posted at 2015-01-09

サイトにあるproguardの記述を使うと、すべてのclassがrename対象でなくなってしまう。

issueにも上がっているのでご注意を。(なおPRもある模様)

proguard-rules.pro
-keep class butterknife.** { *; }
-dontwarn butterknife.internal.**
-keep class **$$ViewInjector { *; }
-keepclasseswithmembernames class * {
    @butterknife.* <fields>;
}

-keepclasseswithmembernames class * {
    @butterknife.* <methods>;
}
9
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
7