Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62421d06 authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Merge "Add keep rules for SysUI plugin annotations" am:...

Merge "Merge "Merge "Add keep rules for SysUI plugin annotations" am: 1df98add am: 3e9f1e8d am: a6998ac7" into udc-dev-plus-aosp am: 31e60774 am: 0743bf53" into udc-qpr-dev-plus-aosp
parents 1d1c0bfd cf04b174
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -25,6 +25,9 @@ java_library {
    sdk_version: "current",
    name: "PluginCoreLib",
    srcs: ["src/**/*.java"],
    optimize: {
        proguard_flags_files: ["proguard.flags"],
    },

    // Enforce that the library is built against java 8 so that there are
    // no compatibility issues with launcher
+11 −0
Original line number Diff line number Diff line
# R8's full mode is a bit more aggressive in stripping annotations, but the
# SystemUI plugin architecture requires these annotations at runtime. The
# following rules are the minimal set necessary to ensure compatibility.
# For more details, see:
# https://r8.googlesource.com/r8/+/refs/heads/master/compatibility-faq.md#r8-full-mode
-keepattributes RuntimeVisible*Annotation*,AnnotationDefault

-keep interface com.android.systemui.plugins.annotations.** {
    *;
}
-keep,allowshrinking,allowoptimization,allowobfuscation,allowaccessmodification @com.android.systemui.plugins.annotations.** class *