Matthias Nott
2026-04-03 31652446a2961dbdb5d4c8e5e56ae815efc09d75
fix: force pro=true and clear stale cache from earlier IAP testing
1 files modified
changed files
lib/services/purchase_service.dart patch | view | blame | history
lib/services/purchase_service.dart
....@@ -54,7 +54,9 @@
5454 // Restore cached value immediately so UI doesn't flicker.
5555 // Default to true for dev/sideloaded builds (no StoreKit configured).
5656 final prefs = await SharedPreferences.getInstance();
57
- _isPro = prefs.getBool(_kProCacheKey) ?? true;
57
+ // Force pro for now — clear any stale false value from earlier testing
58
+ _isPro = true;
59
+ await prefs.setBool(_kProCacheKey, true);
5860 notifyListeners();
5961
6062 // Check if IAP is available — may not be on dev/sideloaded builds