Fix compile errors from #900

This commit is contained in:
Davide 2024-11-21 10:47:46 +01:00
parent b45f9c23fe
commit 4466616339
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
3 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@
import AppUIMain import AppUIMain
import Combine import Combine
import CommonLibrary import CommonLibrary
import CommonUtils
import PassepartoutKit import PassepartoutKit
import SwiftUI import SwiftUI

View File

@ -96,7 +96,7 @@ private extension Configuration.IAPManager {
@MainActor @MainActor
static var appReceiptReader: AppReceiptReader { static var appReceiptReader: AppReceiptReader {
guard !Configuration.Environment.isFakeIAP else { guard !Configuration.Environment.isFakeIAP else {
guard let mockHelper = inAppHelper as? MockAppProductHelper else { guard let mockHelper = inAppHelper as? FakeAppProductHelper else {
fatalError("When .isFakeIAP, productHelper is expected to be MockAppProductHelper") fatalError("When .isFakeIAP, productHelper is expected to be MockAppProductHelper")
} }
return mockHelper.receiptReader return mockHelper.receiptReader

View File

@ -141,7 +141,7 @@ extension Configuration.IAPManager {
@MainActor @MainActor
static let inAppHelper: any AppProductHelper = { static let inAppHelper: any AppProductHelper = {
guard !Configuration.Environment.isFakeIAP else { guard !Configuration.Environment.isFakeIAP else {
return MockAppProductHelper() return FakeAppProductHelper()
} }
return StoreKitHelper( return StoreKitHelper(
products: AppProduct.all, products: AppProduct.all,