Skip to content

Commit

Permalink
fix Heterogeneous collection literal could only be inferred
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed Jul 8, 2024
1 parent 5d86d00 commit 7268b6f
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 63 deletions.
122 changes: 61 additions & 61 deletions RevenueCatUI/CustomerCenter/Data/CustomerCenterConfigTestData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,67 +20,67 @@ enum CustomerCenterConfigTestData {

@available(iOS 14.0, *)
static let customerCenterData = CustomerCenterConfigData(
screens: [
.init(
type: .management,
title: "Manage Subscription",
subtitle: "Manage your subscription details here",
paths: [
.init(
id: "1",
title: "Didn't receive purchase",
type: .missingPurchase,
detail: nil
),
.init(
id: "2",
title: "Request a refund",
type: .refundRequest,
detail: nil
),
.init(
id: "3",
title: "Change plans",
type: .changePlans,
detail: nil
),
.init(
id: "4",
title: "Cancel subscription",
type: .cancel,
detail: .feedbackSurvey(.init(
title: "Why are you cancelling?",
options: [
.init(
id: "1",
title: "Too expensive"
),
.init(
id: "2",
title: "Don't use the app"
),
.init(
id: "3",
title: "Bought by mistake"
)
]
))
)
]
),
.init(
type: .noActive,
title: "No Active Subscription",
subtitle: "You currently have no active subscriptions",
paths: [
.init(
id: "9q9719171o",
title: "Check purchases",
type: .missingPurchase,
detail: nil
)
]
)
screens: [.management:
.init(
type: .management,
title: "Manage Subscription",
subtitle: "Manage your subscription details here",
paths: [
.init(
id: "1",
title: "Didn't receive purchase",
type: .missingPurchase,
detail: nil
),
.init(
id: "2",
title: "Request a refund",
type: .refundRequest,
detail: nil
),
.init(
id: "3",
title: "Change plans",
type: .changePlans,
detail: nil
),
.init(
id: "4",
title: "Cancel subscription",
type: .cancel,
detail: .feedbackSurvey(.init(
title: "Why are you cancelling?",
options: [
.init(
id: "1",
title: "Too expensive"
),
.init(
id: "2",
title: "Don't use the app"
),
.init(
id: "3",
title: "Bought by mistake"
)
]
))
)
]
),
.noActive: .init(
type: .noActive,
title: "No Active Subscription",
subtitle: "You currently have no active subscriptions",
paths: [
.init(
id: "9q9719171o",
title: "Check purchases",
type: .missingPurchase,
detail: nil
)
]
)
],
appearance: .init(
mode: .custom,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,4 +393,3 @@ fileprivate extension SKProductSubscriptionPeriod {
}

#endif

Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class BackendGetCustomerCenterConfigTests: BaseBackendTests {

private extension BackendGetCustomerCenterConfigTests {

static let customerCenterResponse: [String: Any?] = [
static let customerCenterResponse: [String: Any] = [
"customer_center": [
"localization": [
"locale": "en_US",
Expand Down

0 comments on commit 7268b6f

Please sign in to comment.