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

Commit 2674152f authored by Jared Duke's avatar Jared Duke Committed by Gerrit Code Review
Browse files

Merge "Ensure special Dalvik annotations are kept" into main

parents a28e56e1 cb3505c1
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -51,4 +51,13 @@
    @**android**.annotation*.Keep <init>(...);
    @**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
-include proguard_basic_keeps.flags