Skip to content

Instantly share code, notes, and snippets.

@shkschneider
Last active May 1, 2018 13:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shkschneider/a1c81780cd1f35a7037d to your computer and use it in GitHub Desktop.
Save shkschneider/a1c81780cd1f35a7037d to your computer and use it in GitHub Desktop.
ProGuard: obfuscate private fields with Android bug 78377
# <https://code.google.com/p/android/issues/detail?id=78377#c188>
# <https://stackoverflow.com/questions/30526173>
-keepattributes **
-keep class !android.support.v7.internal.view.menu.**, ** {
!private <fields>;
protected <fields>;
public <fields>;
<methods>;
}
#-dontpreverify
#-dontobfuscate
#-dontoptimize
#-dontshrink
-dontwarn **
-dontnote **
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment