From 1339cbd478f9d6bb6871a111dbf9bd8794d8af44 Mon Sep 17 00:00:00 2001 From: Cesar de la Vega Date: Fri, 19 Jul 2024 14:18:17 +0200 Subject: [PATCH] Add missing @PublicForExternalTesting that broke PaywallsTester (#4087) --- RevenueCatUI/Data/TestData.swift | 8 ++++++++ .../PaywallsTester/Config/SamplePaywalls.swift | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/RevenueCatUI/Data/TestData.swift b/RevenueCatUI/Data/TestData.swift index 1983450a6b..7fd4e62fae 100644 --- a/RevenueCatUI/Data/TestData.swift +++ b/RevenueCatUI/Data/TestData.swift @@ -15,6 +15,7 @@ import SwiftUI // @PublicForExternalTesting enum TestData { + // @PublicForExternalTesting static let customerInfo: CustomerInfo = { return .decode( """ @@ -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, @@ -205,6 +211,7 @@ enum TestData { storeProduct: productWithNoIntroOffer.toStoreProduct(), offeringIdentifier: Self.offeringIdentifier ) + // @PublicForExternalTesting static let lifetimePackage = Package( identifier: PackageType.lifetime.identifier, packageType: .lifetime, @@ -770,6 +777,7 @@ extension PaywallColor: ExpressibleByStringLiteral { extension PackageType { + // @PublicForExternalTesting var identifier: String { return Package.string(from: self)! } diff --git a/Tests/TestingApps/PaywallsTester/PaywallsTester/Config/SamplePaywalls.swift b/Tests/TestingApps/PaywallsTester/PaywallsTester/Config/SamplePaywalls.swift index 5860bfaeb4..ca3985a5d0 100644 --- a/Tests/TestingApps/PaywallsTester/PaywallsTester/Config/SamplePaywalls.swift +++ b/Tests/TestingApps/PaywallsTester/PaywallsTester/Config/SamplePaywalls.swift @@ -9,7 +9,7 @@ import Foundation import RevenueCat -@testable import RevenueCatUI +import RevenueCatUI import UIKit