New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proguard will obfuscate class names. #117
Conversation
Previous proguard example left class names unchouched.
Wat. You have to include every annotation? Can't you wildcard it? |
Ugh, gross. I might move this to a separate page then.
|
Proguard runs after |
Ah, we need the classes to not be renamed. Grrrooooosssssssss |
} | ||
|
||
-keepclasseswithmembernames class * { | ||
@butterknife.OnItemLongClick <methods>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent is different.
You're missing focus and checked changed listeners. This isn't a very scalable solution :( |
Will Ideally no one would use ProGuard... |
@JakeWharton ideally the code would automatically and flawlessly reduce
|
index.html NOT publish to github.io? @JakeWharton |
On the subject of wildcards, and not repeating for every new annotation, I found this works OK:
You might be tempted to go a step further, but this one does not work:
So my full working config for ButterKnife now is this:
Fairly short, and pretty scalable. |
Send a PR, please. |
I merged #161. |
Previous proguard example left class names unchouched.