Merge "Ensure special Dalvik annotations are kept" into main am: 2674152fdc am: 2e2c2ab1b8 am: ae9d49b5ad

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

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

View File

@@ -51,4 +51,13 @@
@**android**.annotation*.Keep <init>(...);
}
# Keep Dalvik optimization annotations. These annotations are special in that
# 1) we want them preserved for visibility with ART, but 2) they don't have
# RUNTIME retention. These minimal keep rules ensure they're not stripped by R8.
# TODO(b/215417388): Export this rule from the owning library, core-libart,
# via export_proguard_flags_files.
-keepclassmembers,allowshrinking,allowoptimization,allowobfuscation,allowaccessmodification class * {
@dalvik.annotation.optimization.** *;
}
-include proguard_basic_keeps.flags