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

Commit 72e0f673 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Tweak WeaklyReferencedCallback keep rules" into main

parents 07510bbe 71bff6a6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -30,12 +30,12 @@
# Needed to ensure callback field references are kept in their respective
# owning classes when the downstream callback registrars only store weak refs.
-if @com.android.internal.annotations.WeaklyReferencedCallback class *
-keepclassmembers,allowaccessmodification class * {
  <1> *;
-keepclassmembers,allowaccessmodification,allowobfuscation,allowshrinking class * {
  !synthetic <1> *;
}
-if class * extends @com.android.internal.annotations.WeaklyReferencedCallback **
-keepclassmembers,allowaccessmodification class * {
  <1> *;
-keepclassmembers,allowaccessmodification,allowobfuscation,allowshrinking class * {
  !synthetic <1> *;
}

# Understand the common @Keep annotation from various Android packages: