From c65ea6383b1d5545523d28d31988610534c80949 Mon Sep 17 00:00:00 2001 From: Ramiz Kichibekov Date: Sat, 16 Aug 2025 12:26:16 +0400 Subject: [PATCH] fixed extension of PurchasesProtocol --- Sources/PurchaseKit/Manager/RKPurchasesManager.swift | 2 +- Sources/PurchaseKit/Protocols/RKPurchasesProtocol.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/PurchaseKit/Manager/RKPurchasesManager.swift b/Sources/PurchaseKit/Manager/RKPurchasesManager.swift index 13a88b0..018d020 100644 --- a/Sources/PurchaseKit/Manager/RKPurchasesManager.swift +++ b/Sources/PurchaseKit/Manager/RKPurchasesManager.swift @@ -49,7 +49,7 @@ public actor PurchasesManager: PurchasesProtocol { /// - identifiers: Product IDs registered in App Store Connect. @discardableResult public nonisolated static func configure(identifiers: [String]) -> PurchasesManager { - precondition(instance == nil, "PurchasesActor.configure(_:)" + " has already been called. Double configuration is not allowed.") + precondition(instance == nil, "PurchasesActor.configure(_:) has already been called. Double configuration is not allowed.") let instance = PurchasesManager(identifiers: identifiers) self.instance = instance Task.detached { diff --git a/Sources/PurchaseKit/Protocols/RKPurchasesProtocol.swift b/Sources/PurchaseKit/Protocols/RKPurchasesProtocol.swift index 8056934..565f3e5 100644 --- a/Sources/PurchaseKit/Protocols/RKPurchasesProtocol.swift +++ b/Sources/PurchaseKit/Protocols/RKPurchasesProtocol.swift @@ -19,6 +19,6 @@ public protocol PurchasesProtocol: Sendable { /// - SeeAlso: ``PurchasesProtocol/requestProducts(includingCache:)`` public extension PurchasesProtocol { func requestProducts(includingCache: Bool = true) async throws -> [StoreProduct] { - [] + try await requestProducts(includingCache: includingCache) } }