Skip to content

Commit 6d14209

Browse files
fix(widget): prevent release-only spinning widget by restoring core background keep rules
1 parent 0747522 commit 6d14209

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

android/app/proguard-rules.pro

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88

99
# Google Tink / security-crypto
1010
-dontwarn com.google.errorprone.annotations.**
11+
-keepclassmembers class * extends com.google.crypto.tink.shaded.protobuf.GeneratedMessageLite {
12+
<fields>;
13+
}
1114

1215
# kotlinx-serialization
13-
-keepattributes *Annotation*, InnerClasses
16+
-keepattributes *Annotation*, InnerClasses, Signature
1417
-dontnote kotlinx.serialization.AnnotationsKt
1518

1619
-keepclassmembers class kotlinx.serialization.json.** {
@@ -34,3 +37,15 @@
3437

3538
# Keep data classes used for JSON parsing
3639
-keep class com.clhs.score.data.** { *; }
40+
41+
# Glance and Widgets
42+
-keep class androidx.glance.** { *; }
43+
-keep class com.clhs.score.widget.** { *; }
44+
-keep class androidx.compose.runtime.** { *; }
45+
46+
# WorkManager, Room, DataStore
47+
-keep class androidx.work.** { *; }
48+
-keep class androidx.room.** { *; }
49+
-keep class androidx.sqlite.** { *; }
50+
-keep class androidx.datastore.** { *; }
51+
-keep class kotlinx.coroutines.** { *; }

0 commit comments

Comments
 (0)