Fix compile errors from #900
This commit is contained in:
parent
b45f9c23fe
commit
4466616339
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue