Fix compile errors from #900
This commit is contained in:
parent
b45f9c23fe
commit
4466616339
|
@ -28,6 +28,7 @@
|
|||
import AppUIMain
|
||||
import Combine
|
||||
import CommonLibrary
|
||||
import CommonUtils
|
||||
import PassepartoutKit
|
||||
import SwiftUI
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue