diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 0ce5857..6a476aa 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -23,5 +23,11 @@ # the host, and every widget shows "Can't load widget". -keep class * extends androidx.work.InputMerger { (); } +# Glance finds a widget's placed instances by its GlanceAppWidget's class name +# (`updateAll`, `getGlanceIds`). R8 merged the near-identical widget classes +# into one, so every widget shared a name: starting a quick timer redrew the +# timer widgets' content into the analog clock's slots, too. +-keep class * extends androidx.glance.appwidget.GlanceAppWidget + # Compose Compiler may keep its own; defaults are fine -dontwarn org.jetbrains.annotations.**