authorgravatar for admin@snappeh.comTristan Knight <admin@snappeh.com> 2026-10-04 01:59:01+01:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-03 21:59:01-03:00
log8e399944393ee48054c0ca4aece0b6c9befd0998
tree1757cdd9e79df6bc35dde84e9308e0d27282babb
parent1b1e5b9674fcacf7aa177594d44cd61614c2f45f
signature Signed by PGP key B5690EEEBB952194

fix(mobile): Android usage widget no longer sticks on "Loading widget" in release builds (#15142)

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

1 files changed, 10 insertions(+), 1 deletions(-)

apps/mobile/app.config.ts+10-1
...@@ -418,7 +418,16 @@ const config: ExpoConfig = {...@@ -418,7 +418,16 @@ const config: ExpoConfig = {
418 minSdkVersion: 24,418 minSdkVersion: 24,
419 // kotlinx-io uses Kotlin 2.3's return-value checker annotation, while419 // kotlinx-io uses Kotlin 2.3's return-value checker annotation, while
420 // SDK 58 builds with Kotlin 2.2. It has no runtime behavior.420 // 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"),
422 },431 },
423 ios: {432 ios: {
424 deploymentTarget: "18.0",433 deploymentTarget: "18.0",