Make ProGuard keep @VisibleForTesting classes and methods

Change-Id: I7f5d14fd4188859c52ab85c33af1ac275888611c
This commit is contained in:
Bjorn Bringert 2010-03-09 14:37:21 +00:00
parent d231c0648d
commit 4f85d00113
1 changed files with 6 additions and 0 deletions

View File

@ -38,6 +38,12 @@
java.lang.Class class$(java.lang.String, boolean);
}
# Keep classes and methods that have the guava @VisibleForTesting annotation
-keep @com.google.common.annotations.VisibleForTesting class *
-keepclassmembers class * {
@com.google.common.annotations.VisibleForTesting *;
}
# Please specify classes to be kept explicitly in your package's configuration.
# -keep class * extends android.app.Activity
# -keep class * extends android.view.View