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 Combine
import CommonLibrary
import CommonUtils
import PassepartoutKit
import SwiftUI

View File

@ -96,7 +96,7 @@ private extension Configuration.IAPManager {
@MainActor
static var appReceiptReader: AppReceiptReader {
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")
}
return mockHelper.receiptReader

View File

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