Skip to content

Commit

Permalink
Add missing @PublicForExternalTesting that broke PaywallsTester (#4087)
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro authored and nyeu committed Oct 1, 2024
1 parent 15a70d5 commit 1339cbd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions RevenueCatUI/Data/TestData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import SwiftUI
// @PublicForExternalTesting
enum TestData {

// @PublicForExternalTesting
static let customerInfo: CustomerInfo = {
return .decode(
"""
Expand Down Expand Up @@ -149,30 +150,35 @@ enum TestData {
discounts: [],
locale: Self.locale
)
// @PublicForExternalTesting
static let weeklyPackage = Package(
identifier: PackageType.weekly.identifier,
packageType: .weekly,
storeProduct: Self.weeklyProduct.toStoreProduct(),
offeringIdentifier: Self.offeringIdentifier
)
// @PublicForExternalTesting
static let monthlyPackage = Package(
identifier: PackageType.monthly.identifier,
packageType: .monthly,
storeProduct: Self.monthlyProduct.toStoreProduct(),
offeringIdentifier: Self.offeringIdentifier
)
// @PublicForExternalTesting
static let threeMonthPackage = Package(
identifier: PackageType.threeMonth.identifier,
packageType: .threeMonth,
storeProduct: Self.threeMonthProduct.toStoreProduct(),
offeringIdentifier: Self.offeringIdentifier
)
// @PublicForExternalTesting
static let sixMonthPackage = Package(
identifier: PackageType.sixMonth.identifier,
packageType: .sixMonth,
storeProduct: Self.sixMonthProduct.toStoreProduct(),
offeringIdentifier: Self.offeringIdentifier
)
// @PublicForExternalTesting
static let annualPackage = Package(
identifier: PackageType.annual.identifier,
packageType: .annual,
Expand Down Expand Up @@ -205,6 +211,7 @@ enum TestData {
storeProduct: productWithNoIntroOffer.toStoreProduct(),
offeringIdentifier: Self.offeringIdentifier
)
// @PublicForExternalTesting
static let lifetimePackage = Package(
identifier: PackageType.lifetime.identifier,
packageType: .lifetime,
Expand Down Expand Up @@ -770,6 +777,7 @@ extension PaywallColor: ExpressibleByStringLiteral {

extension PackageType {

// @PublicForExternalTesting
var identifier: String {
return Package.string(from: self)!
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import Foundation
import RevenueCat
@testable import RevenueCatUI
import RevenueCatUI

import UIKit

Expand Down

0 comments on commit 1339cbd

Please sign in to comment.