Merge "Ensure runtime-visible annotations are kept" am: 55d24aeb4c
Original change: https://android-review.googlesource.com/c/platform/build/+/2165010 Change-Id: Ifa186882f50c6c002592d94f530b4bffcfea8e9f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
9de205cbae
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,11 @@
|
|||
# that isn't explicitly part of the API
|
||||
-dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclassmembers
|
||||
|
||||
# Annotations are implemented as attributes, so we have to explicitly keep them.
|
||||
# Keep all runtime-visible annotations like RuntimeVisibleParameterAnnotations
|
||||
# and RuntimeVisibleTypeAnnotations, as well as associated defaults.
|
||||
-keepattributes RuntimeVisible*Annotation*,AnnotationDefault
|
||||
|
||||
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
|
||||
-keepclassmembers enum * {
|
||||
public static **[] values();
|
||||
|
|
Loading…
Reference in a new issue