Skip to content

Commit 8e110eb

Browse files
tris203claude
andcommitted
fix(mobile): Android usage widget no longer sticks on "Loading widget" in release builds
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 18b2132 commit 8e110eb

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎apps/mobile/app.config.ts‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,16 @@ const config: ExpoConfig = {
418418
minSdkVersion: 24,
419419
// kotlinx-io uses Kotlin 2.3's return-value checker annotation, while
420420
// SDK 58 builds with Kotlin 2.2. It has no runtime behavior.
421-
extraProguardRules: "-dontwarn kotlin.MustUseReturnValues",
421+
//
422+
// WorkManager 2.9 keeps InputMerger classes but not their constructors,
423+
// and R8 full mode no longer keeps a default constructor implicitly.
424+
// Without it no work request can start, so the Glance session behind
425+
// the widget never renders and it stays on "Loading widget". WorkManager
426+
// 2.10 ships this rule itself; drop it once the resolved version gets there.
427+
extraProguardRules: [
428+
"-dontwarn kotlin.MustUseReturnValues",
429+
"-keep class * extends androidx.work.InputMerger { <init>(); }",
430+
].join("\n"),
422431
},
423432
ios: {
424433
deploymentTarget: "18.0",

0 commit comments

Comments
 (0)