From 31652446a2961dbdb5d4c8e5e56ae815efc09d75 Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Fri, 03 Apr 2026 08:09:46 +0200
Subject: [PATCH] fix: force pro=true and clear stale cache from earlier IAP testing

---
 lib/services/purchase_service.dart |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lib/services/purchase_service.dart b/lib/services/purchase_service.dart
index 8f75d90..a611657 100644
--- a/lib/services/purchase_service.dart
+++ b/lib/services/purchase_service.dart
@@ -54,7 +54,9 @@
     // Restore cached value immediately so UI doesn't flicker.
     // Default to true for dev/sideloaded builds (no StoreKit configured).
     final prefs = await SharedPreferences.getInstance();
-    _isPro = prefs.getBool(_kProCacheKey) ?? true;
+    // Force pro for now — clear any stale false value from earlier testing
+    _isPro = true;
+    await prefs.setBool(_kProCacheKey, true);
     notifyListeners();
 
     // Check if IAP is available — may not be on dev/sideloaded builds

--
Gitblit v1.3.1