Merge "Add global rule for -keepattributes Exceptions" into main am: 7e730893f1

Original change: https://android-review.googlesource.com/c/platform/build/+/2707402

Change-Id: I264c182195f468ffdd86dcdf0049336a08da4160
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jared Duke
2023-08-15 18:33:18 +00:00
committed by Automerger Merge Worker

View File

@@ -10,6 +10,12 @@
# and RuntimeVisibleTypeAnnotations, as well as associated defaults.
-keepattributes RuntimeVisible*Annotation*,AnnotationDefault
# With R8 full mode, certain attributes are only kept when matched with an
# explicit keep rule for that target, even with a global -keepattributes rule.
# As such, we can add the global keep rule here with minimal cost while
# simplifying incremental development.
-keepattributes Exceptions
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
-keepclassmembers enum * {
public static **[] values();