From b57a1bed83ba0a7a8e20d41c937cc43c9cdc8149 Mon Sep 17 00:00:00 2001 From: NachoSoto Date: Thu, 16 Nov 2023 08:27:44 -0800 Subject: [PATCH] Remove `MockStoreMessagesHelper` from SDK (#3417) This was meant to be just for tests. --- RevenueCat.xcodeproj/project.pbxproj | 6 ++++-- Tests/UnitTests/Mocks/MockStoreMessagesHelper.swift | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/RevenueCat.xcodeproj/project.pbxproj b/RevenueCat.xcodeproj/project.pbxproj index b6dbdb1578..4f2c51c48b 100644 --- a/RevenueCat.xcodeproj/project.pbxproj +++ b/RevenueCat.xcodeproj/project.pbxproj @@ -10,7 +10,6 @@ 0313FD41268A506400168386 /* DateProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0313FD40268A506400168386 /* DateProvider.swift */; }; 1E473B662AC42D34008B07F9 /* StoreMessagesHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E473B652AC42D34008B07F9 /* StoreMessagesHelper.swift */; }; 1E473B682AC43254008B07F9 /* StoreMessageType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E473B672AC43254008B07F9 /* StoreMessageType.swift */; }; - 1E473B6A2AC46908008B07F9 /* MockStoreMessagesHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E473B692AC46908008B07F9 /* MockStoreMessagesHelper.swift */; }; 1E568B512ACC6A8300D3C12F /* StoreMessageTypeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E568B502ACC6A8300D3C12F /* StoreMessageTypeTests.swift */; }; 1E99F81F2AC5917F0023E26E /* StoreMessagesHelperTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E99F81D2AC5917F0023E26E /* StoreMessagesHelperTests.swift */; }; 2C0B98CD2797070B00C5874F /* PromotionalOffer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C0B98CC2797070B00C5874F /* PromotionalOffer.swift */; }; @@ -218,6 +217,7 @@ 4F1E84022A6062C9000AF177 /* ImageSnapshot.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FCEEA622A37A2E9002C2112 /* ImageSnapshot.swift */; }; 4F2017D52A15587F0061F6EF /* OfflineStoreKitIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F2017D42A15587F0061F6EF /* OfflineStoreKitIntegrationTests.swift */; }; 4F2018732A15797D0061F6EF /* TestLogHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57057FF728B0048900995F21 /* TestLogHandler.swift */; }; + 4F2A91D82B05675B00FED622 /* MockStoreMessagesHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E473B692AC46908008B07F9 /* MockStoreMessagesHelper.swift */; }; 4F2F2EFF2A3CDAA800652B24 /* FileHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F2F2EFE2A3CDAA800652B24 /* FileHandler.swift */; }; 4F2F2F142A3CEAB500652B24 /* FileHandlerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F2F2F132A3CEAB500652B24 /* FileHandlerTests.swift */; }; 4F34AEEC2A5DCCBA00F4BCB0 /* VerificationResultTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F34AEEB2A5DCCBA00F4BCB0 /* VerificationResultTests.swift */; }; @@ -254,6 +254,7 @@ 4F6BEE3B2A27B45300CD9322 /* StoreKitTestHelpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 571E7AD3279F2D0C003B3606 /* StoreKitTestHelpers.swift */; }; 4F6BEE3C2A27B45900CD9322 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DE61A83264190830021CEA0 /* Constants.swift */; }; 4F6BEE882A27E16B00CD9322 /* TestLogHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 57057FF728B0048900995F21 /* TestLogHandler.swift */; }; + 4F6CEB472B056816002B2CB1 /* MockStoreMessagesHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E473B692AC46908008B07F9 /* MockStoreMessagesHelper.swift */; }; 4F6E81982A81BC30006EF181 /* TestClock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 578DAA492948EF4F001700FD /* TestClock.swift */; }; 4F6E81E62A82AAE1006EF181 /* HTTPRequestPath.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F6E81E52A82AAE1006EF181 /* HTTPRequestPath.swift */; }; 4F6EEBD92A38ED76007FD783 /* FakeSigning.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F6EEBD82A38ED76007FD783 /* FakeSigning.swift */; }; @@ -3317,6 +3318,7 @@ 2D90F8B826FD20AA009B9142 /* MockReceiptFetcher.swift in Sources */, 2D90F8B626FD2099009B9142 /* MockSubscriberAttributesManager.swift in Sources */, 2D90F8BF26FD20D6009B9142 /* MockAttributionFetcher.swift in Sources */, + 4F6CEB472B056816002B2CB1 /* MockStoreMessagesHelper.swift in Sources */, 4F5D52EC2A57152B00E1C758 /* ImageSnapshot.swift in Sources */, 4FC972172A712DCC008593DE /* CachingProductsManagerTests.swift in Sources */, 1E99F81F2AC5917F0023E26E /* StoreMessagesHelperTests.swift in Sources */, @@ -3498,7 +3500,6 @@ 2DDF41BB24F6F392005BC22D /* UInt8+Extensions.swift in Sources */, 57CB2A7829CCC3AA00C91439 /* ProductEntitlementMappingFetcher.swift in Sources */, 5712BE9029241EB500A83F15 /* TimingUtil.swift in Sources */, - 1E473B6A2AC46908008B07F9 /* MockStoreMessagesHelper.swift in Sources */, B3B5FBC1269E17CE00104A0C /* DeviceCache.swift in Sources */, F5BE424226965F9F00254A30 /* ProductRequestData+Initialization.swift in Sources */, 2DDF41AD24F6F37C005BC22D /* ASN1ObjectIdentifier.swift in Sources */, @@ -3646,6 +3647,7 @@ B300E4C026D4371200B22262 /* SKPaymentTransactionExtensionsTests.swift in Sources */, 2DDF41C924F6F4C3005BC22D /* UInt8+ExtensionsTests.swift in Sources */, 2D4D6AF524F717B800B656BE /* ContainerFactory.swift in Sources */, + 4F2A91D82B05675B00FED622 /* MockStoreMessagesHelper.swift in Sources */, 57E9CF11290B2ADC00EE12D1 /* CachingTrialOrIntroPriceEligibilityCheckerTests.swift in Sources */, 57E415FF28469EAB00EA5460 /* PurchasesGetProductsTests.swift in Sources */, 57045B3829C514A8001A5417 /* ProductEntitlementMappingDecodingTests.swift in Sources */, diff --git a/Tests/UnitTests/Mocks/MockStoreMessagesHelper.swift b/Tests/UnitTests/Mocks/MockStoreMessagesHelper.swift index 7caf09aedb..edf7d093b0 100644 --- a/Tests/UnitTests/Mocks/MockStoreMessagesHelper.swift +++ b/Tests/UnitTests/Mocks/MockStoreMessagesHelper.swift @@ -11,6 +11,8 @@ // // Created by Antonio Rico Diez on 27/9/23. +@testable import RevenueCat + import Foundation class MockStoreMessagesHelper: StoreMessagesHelperType {