1# R8's full mode is a bit more aggressive in stripping annotations, but the 2# SystemUI plugin architecture requires these annotations at runtime. The 3# following rules are the minimal set necessary to ensure compatibility. 4# For more details, see: 5# https://r8.googlesource.com/r8/+/refs/heads/master/compatibility-faq.md#r8-full-mode 6-keepattributes RuntimeVisible*Annotation*,AnnotationDefault 7 8-keep interface com.android.systemui.plugins.annotations.** { 9 *; 10} 11# TODO(b/373579455): Evaluate if <init> needs to be kept. 12-keep,allowshrinking,allowoptimization,allowobfuscation,allowaccessmodification @com.android.systemui.plugins.annotations.** class * { 13 void <init>(); 14} 15