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

Commit 64143c8d authored by Christoffer Adamsen's avatar Christoffer Adamsen
Browse files

SystemUI: Add keep rule for VendorServices constructor

This constructor is looked up reflectively and should be kept explicitly. Future versions of R8 in full mode will no longer implicitly keep VendorServices.<init> when VendorServices is kept.

Bug: 356344563
Bug: 373579455
Test: existing
Change-Id: I07d2b4c576b3e01a76875d7c02327fa5acab4660
parent 0805e0e8
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
-include proguard_kotlin.flags
-include proguard_kotlin.flags
-keep class com.android.systemui.VendorServices

# VendorServices implements CoreStartable and may be instantiated reflectively in
# SystemUIApplication#startAdditionalStartable.
# TODO(b/373579455): Rewrite this to a @UsesReflection keep annotation.
-keep class com.android.systemui.VendorServices {
  public void <init>();
}


# Needed to ensure callback field references are kept in their respective
# Needed to ensure callback field references are kept in their respective
# owning classes when the downstream callback registrars only store weak refs.
# owning classes when the downstream callback registrars only store weak refs.