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

Commit a58d8f5e authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Tweak WeaklyReferencedCallback keep rules" into main am: 72e0f673 am: 2a234ce2

parents 9f5859ca 2a234ce2
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: