From 9fd2f51871f6995ce6d058c08004627c14de7bc6 Mon Sep 17 00:00:00 2001 From: Stephen B <158498287+StephenDev0@users.noreply.github.com> Date: Wed, 24 Sep 2025 16:09:26 -0400 Subject: [PATCH] Final fixes --- .../xcshareddata/xcschemes/StikDebug.xcscheme | 2 +- StikJIT/Utilities/ThemeExpansionManager.swift | 57 ++++++++++++++++--- StikJIT/Views/DisplayView.swift | 2 +- 3 files changed, 51 insertions(+), 10 deletions(-) diff --git a/StikDebug.xcodeproj/xcshareddata/xcschemes/StikDebug.xcscheme b/StikDebug.xcodeproj/xcshareddata/xcschemes/StikDebug.xcscheme index 006d471..0b70022 100644 --- a/StikDebug.xcodeproj/xcshareddata/xcschemes/StikDebug.xcscheme +++ b/StikDebug.xcodeproj/xcshareddata/xcschemes/StikDebug.xcscheme @@ -55,7 +55,7 @@ Bool { + for await result in Transaction.currentEntitlements { + if case .verified(let transaction) = result, transaction.productID == Self.productIdentifier { + return transaction.revocationDate == nil + } + } + return false + } } #if DEBUG diff --git a/StikJIT/Views/DisplayView.swift b/StikJIT/Views/DisplayView.swift index 6660ad7..882e6f6 100644 --- a/StikJIT/Views/DisplayView.swift +++ b/StikJIT/Views/DisplayView.swift @@ -375,7 +375,7 @@ struct DisplayView: View { if let manager = themeExpansion { Button { - Task { await manager.refreshEntitlements() } + Task { await manager.restorePurchases() } } label: { Text("Restore Purchase") .font(.subheadline)