forked from openkylin/platform_build
Make ProGuard keep @VisibleForTesting classes and methods
Change-Id: I7f5d14fd4188859c52ab85c33af1ac275888611c
This commit is contained in:
parent
d231c0648d
commit
4f85d00113
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue