From a77fd96606ee545a9517e8d6fe46a9409b1a6718 Mon Sep 17 00:00:00 2001 From: RevenueCat Git Bot <72824662+RCGitBot@users.noreply.github.com> Date: Mon, 10 Jul 2023 16:28:52 +0200 Subject: [PATCH] [AUTOMATIC] iOS 4.23.1 => 4.24.1 (#457) [AUTOMATIC] iOS 4.23.1 => 4.24.1 --------- Co-authored-by: NachoSoto --- DEVELOPMENT.md | 2 +- PurchasesHybridCommon.podspec | 2 +- ios/PurchasesHybridCommon/Podfile | 4 +- ios/PurchasesHybridCommon/Podfile.lock | 8 ++-- .../Offering+HybridAdditionsTests.swift | 45 ++++++------------- 5 files changed, 22 insertions(+), 39 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 0b42b086..19003b86 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -5,7 +5,7 @@ In `ios/PurchasesHybridCommon/Podfile` replace: ``` - pod 'RevenueCat', '4.23.1' + pod 'RevenueCat', '4.24.1' ``` with: diff --git a/PurchasesHybridCommon.podspec b/PurchasesHybridCommon.podspec index 3adee5b2..639e16e2 100644 --- a/PurchasesHybridCommon.podspec +++ b/PurchasesHybridCommon.podspec @@ -15,7 +15,7 @@ Pod::Spec.new do |s| s.framework = 'StoreKit' - s.dependency 'RevenueCat', '4.23.1' + s.dependency 'RevenueCat', '4.24.1' s.swift_version = '5.0' s.ios.deployment_target = '11.0' diff --git a/ios/PurchasesHybridCommon/Podfile b/ios/PurchasesHybridCommon/Podfile index cc2f05ad..d0d13c2f 100644 --- a/ios/PurchasesHybridCommon/Podfile +++ b/ios/PurchasesHybridCommon/Podfile @@ -5,7 +5,7 @@ target 'PurchasesHybridCommon' do use_frameworks! # Pods for PurchasesHybridCommon - pod 'RevenueCat', '4.23.1' + pod 'RevenueCat', '4.24.1' target 'PurchasesHybridCommonTests' do # Pods for testing @@ -25,5 +25,5 @@ target 'ObjCAPITester' do platform :ios, '11.0' use_frameworks! - pod 'RevenueCat', '4.23.1' + pod 'RevenueCat', '4.24.1' end \ No newline at end of file diff --git a/ios/PurchasesHybridCommon/Podfile.lock b/ios/PurchasesHybridCommon/Podfile.lock index 5bee53e4..cef8ba2c 100644 --- a/ios/PurchasesHybridCommon/Podfile.lock +++ b/ios/PurchasesHybridCommon/Podfile.lock @@ -1,12 +1,12 @@ PODS: - Nimble (10.0.0) - Quick (5.0.1) - - RevenueCat (4.23.1) + - RevenueCat (4.24.1) DEPENDENCIES: - Nimble - Quick - - RevenueCat (= 4.23.1) + - RevenueCat (= 4.24.1) SPEC REPOS: trunk: @@ -17,8 +17,8 @@ SPEC REPOS: SPEC CHECKSUMS: Nimble: 5316ef81a170ce87baf72dd961f22f89a602ff84 Quick: 749aa754fd1e7d984f2000fe051e18a3a9809179 - RevenueCat: 2b099ec01da3f3c1f26c1c4c4da3ab36a4d88f25 + RevenueCat: 8e5da200b5a5f45688aead5d803654c19f739914 -PODFILE CHECKSUM: 3eeaf6eb26814629e80d8ce22d77a8fe4e0207b9 +PODFILE CHECKSUM: 6daaa7917aaee18eec1ca816a25dc248a89580bd COCOAPODS: 1.12.1 diff --git a/ios/PurchasesHybridCommon/PurchasesHybridCommonTests/Offering+HybridAdditionsTests.swift b/ios/PurchasesHybridCommon/PurchasesHybridCommonTests/Offering+HybridAdditionsTests.swift index 52a269ef..5d8162b6 100644 --- a/ios/PurchasesHybridCommon/PurchasesHybridCommonTests/Offering+HybridAdditionsTests.swift +++ b/ios/PurchasesHybridCommon/PurchasesHybridCommonTests/Offering+HybridAdditionsTests.swift @@ -26,7 +26,7 @@ class OfferingInfoHybridAdditionsTests: QuickSpec { .init( identifier: "annual", packageType: .annual, - storeProduct: MockStoreProduct(), + storeProduct: TestStoreProduct().toStoreProduct(), offeringIdentifier: "default" ) ] @@ -54,7 +54,7 @@ class OfferingInfoHybridAdditionsTests: QuickSpec { .init( identifier: "annual", packageType: .annual, - storeProduct: MockStoreProduct(), + storeProduct: TestStoreProduct().toStoreProduct(), offeringIdentifier: "default" ) ] @@ -72,34 +72,17 @@ class OfferingInfoHybridAdditionsTests: QuickSpec { extension StoreProduct.ProductCategory: @unchecked Sendable {} extension StoreProduct.ProductType: @unchecked Sendable {} -private struct MockStoreProduct: StoreProductType { - - var productCategory: StoreProduct.ProductCategory = .subscription - - var productType: StoreProduct.ProductType = .autoRenewableSubscription - - var localizedDescription: String = "" - - var localizedTitle: String = "" - - var currencyCode: String? = "" - - var price: Decimal = 0.0 - - var localizedPriceString: String = "" - - var productIdentifier: String = "" - - var isFamilyShareable: Bool = false - - var subscriptionGroupIdentifier: String? = nil - - var priceFormatter: NumberFormatter? = nil - - var subscriptionPeriod: RevenueCat.SubscriptionPeriod? = nil - - var introductoryDiscount: RevenueCat.StoreProductDiscount? = nil - - var discounts: [RevenueCat.StoreProductDiscount] = [] +private extension TestStoreProduct { + + init() { + self.init( + localizedTitle: "", + price: 0.0, + localizedPriceString: "", + productIdentifier: "", + productType: .autoRenewableSubscription, + localizedDescription: "" + ) + } }