Add offline resilience to subscription status checks

Cache subscription expiration date so premium access survives
offline launches and transient StoreKit failures. Restores cached
state synchronously on init to eliminate loading flash.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-10 09:56:14 -06:00
parent 65460c63b3
commit 1e8acfa320
3 changed files with 38 additions and 141 deletions

View File

@@ -196,6 +196,7 @@ class UserDefaultsStore {
case daysFilter
case firstLaunchDate
case hasActiveSubscription
case cachedSubscriptionExpiration
case lastVotedDate
case votingLayoutStyle
case dayViewStyle