From f58e9031d9ce6c637785438afef7e5086bfd9e2f Mon Sep 17 00:00:00 2001 From: Antonio Pallares Date: Wed, 3 Jun 2026 10:27:19 +0200 Subject: [PATCH 01/10] ci: add run-test-mac-catalyst job on Xcode 26.5 Adds a Mac Catalyst test job that runs the full iOS test plan (including StoreKit tests) on the Mac Catalyst variant with Xcode 26.5, to check whether the StoreKit product-fetching bug that breaks iOS simulator tests on Xcode 26.4+ also reproduces on Mac Catalyst. Wires the job into the run-all-tests and release workflows and adds it to the all-tasks-passed / all-tests-succeeded merge gates. Co-authored-by: Cursor --- .circleci/default_config.yml | 38 +++++++++++++++++++++ .circleci/generate-requested-jobs-config.js | 1 + fastlane/Fastfile | 21 ++++++++++++ 3 files changed, 60 insertions(+) diff --git a/.circleci/default_config.yml b/.circleci/default_config.yml index 4b672ad223..aae3a77b4e 100644 --- a/.circleci/default_config.yml +++ b/.circleci/default_config.yml @@ -998,6 +998,36 @@ jobs: - slack-notify-on-fail - github-notify-pr-on-fail + # As of May 2026, StoreKit tests fail to fetch products on iOS simulators when + # building with Xcode 26.4+ (see run-test-ios-26 / build-xcode-265 notes below). + # The same bug does not appear to reproduce on Mac Catalyst, so this job runs the + # full iOS test plan (including StoreKit tests) on the Mac Catalyst variant with + # Xcode 26.5 to confirm this on CI. + run-test-mac-catalyst: + executor: + name: macos-executor + xcode_version: "26.5" + + steps: + - checkout + - install-dependencies + + # === Mac Catalyst tests === + - run: + name: Run Mac Catalyst tests + command: bundle exec fastlane mac test_catalyst + no_output_timeout: 15m + - compress_result_bundle: + directory: fastlane/test_output/xctest/catalyst + bundle_name: RevenueCat + - store_test_results: + path: fastlane/test_output + - store_artifacts: + path: fastlane/test_output/xctest + destination: scan-test-output-mac-catalyst + - slack-notify-on-fail + - github-notify-pr-on-fail + # As of May 12, 2026, there is a StoreKit bug that is preventing us from running unit tests # when building with Xcode 26.4+. When built with Xcode 26.4+, tests that fetch products # with StoreKit with a SKConfig file fail to fetch products. Thus, a good chunk of our @@ -2216,6 +2246,9 @@ workflows: - build-xcode-265: context: - slack-secrets + - run-test-mac-catalyst: + context: + - slack-secrets - pod-lib-lint: context: - slack-secrets @@ -2380,6 +2413,7 @@ workflows: - check-api-changes-revenuecatui - run-test-ios-26 - build-xcode-265 + - run-test-mac-catalyst - pod-lib-lint - run-revenuecat-ui-ios-26 - emerge_purchases_ui_snapshot_tests @@ -2681,6 +2715,9 @@ workflows: - build-xcode-265: context: - slack-secrets + - run-test-mac-catalyst: + context: + - slack-secrets - pod-lib-lint: context: - slack-secrets @@ -2702,6 +2739,7 @@ workflows: - lint - run-test-ios-26 - build-xcode-265 + - run-test-mac-catalyst - pod-lib-lint - run-revenuecat-ui-ios-26 - emerge_purchases_ui_snapshot_tests diff --git a/.circleci/generate-requested-jobs-config.js b/.circleci/generate-requested-jobs-config.js index 60c8b284cb..2c598d3061 100644 --- a/.circleci/generate-requested-jobs-config.js +++ b/.circleci/generate-requested-jobs-config.js @@ -38,6 +38,7 @@ const JOBS = { "run-test-ios-16": ["slack-secrets"], "run-test-ios-18-and-17": ["slack-secrets"], "run-test-ios-26": ["slack-secrets"], + "run-test-mac-catalyst": ["slack-secrets"], "run-test-tvos-and-macos": ["slack-secrets"], "run-test-watchos": ["slack-secrets"], "spm-receipt-parser": ["slack-secrets"], diff --git a/fastlane/Fastfile b/fastlane/Fastfile index e0bb3bdefe..cc8a567cdf 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -2550,6 +2550,27 @@ platform :mac do end end + desc "Runs tests on Mac Catalyst" + lane :test_catalyst do |options| + # Runs the same test plan as iOS (including the StoreKit unit tests) but on the + # Mac Catalyst variant. As of May 2026, StoreKit tests fail to fetch products + # on iOS simulators with Xcode 26.4+. This lane is used to check whether the + # same StoreKit bug reproduces on Mac Catalyst. + scan( + step_name: "scan - Mac Catalyst", + destination: "platform=macOS,arch=arm64,variant=Mac Catalyst", + scheme: "RevenueCat", + output_types: 'junit', + result_bundle: true, + testplan: "CI-AllTests", + configuration: 'Debug', + output_directory: "fastlane/test_output/xctest/catalyst", + number_of_retries: 5, # Number of retries in an xcodebuild run + fail_build: true, + xcargs: "CODE_SIGN_IDENTITY='' CODE_SIGNING_REQUIRED=NO" + ) + end + end def check_no_git_tag_exists(version_number) From 01f51df6c8ce96c4a0691bf02f045794dd192373 Mon Sep 17 00:00:00 2001 From: Antonio Pallares Date: Wed, 3 Jun 2026 10:53:03 +0200 Subject: [PATCH 02/10] test: make test target compile for Mac Catalyst The StoreKitTest framework's Swift overlay (setSimulatedError(_:forAPI:) and FailableStoreKitAPI) ships no Mac Catalyst (macabi) slice in Xcode 26.5, so tests using it fail to compile for Catalyst. Guard those tests out / skip them on Catalyst. testPurchaseFailureClearsPresentedPaywall is kept defined (skipped at runtime) to satisfy PurchasesOrchestratorTests. Also fix MockPurchases.presentCodeRedemptionSheet(), which implemented a requirement marked @available(macCatalyst, unavailable): guard it with !targetEnvironment(macCatalyst) to match StoreKit1Wrapper. Regenerates fastlane/README.md for the new test_catalyst lane. Co-authored-by: Cursor --- .../ProductsManagerTests.swift | 4 ++- .../PurchasesOrchestratorSK2Tests.swift | 16 ++++++++++-- Tests/UnitTests/Mocks/MockPurchases.swift | 2 +- fastlane/README.md | 26 ++++++++++++++++++- 4 files changed, 43 insertions(+), 5 deletions(-) diff --git a/Tests/StoreKitUnitTests/ProductsManagerTests.swift b/Tests/StoreKitUnitTests/ProductsManagerTests.swift index 12e6bcae97..ff19c819bb 100644 --- a/Tests/StoreKitUnitTests/ProductsManagerTests.swift +++ b/Tests/StoreKitUnitTests/ProductsManagerTests.swift @@ -210,7 +210,9 @@ class SK2ProductsManagerDiagnosticsTrackingTests: ProductsManagerTests { expect(params.storeKitErrorDescription).to(beNil()) } - #if swift(>=5.9) + // `SKTestSession.setSimulatedError(_:forAPI:)` is part of the StoreKitTest Swift overlay, + // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst. + #if swift(>=5.9) && !targetEnvironment(macCatalyst) @available(iOS 17.0, tvOS 17.0, macOS 14.0, watchOS 10.0, *) func testFetchProductsWithIdentifiersSK2ErrorTracksCorrectly() async throws { try AvailabilityChecks.iOS17APIAvailableOrSkipTest() diff --git a/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift b/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift index 89d5b765e9..09794927d3 100644 --- a/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift +++ b/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift @@ -166,7 +166,9 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr expect(self.backend.invokedPostReceiptData) == false } - #if swift(>=5.9) + // `SKTestSession.setSimulatedError(_:forAPI:)` is part of the StoreKitTest Swift overlay, + // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst. + #if swift(>=5.9) && !targetEnvironment(macCatalyst) @available(iOS 17.0, tvOS 17.0, watchOS 10.0, macOS 14.0, *) func testPurchaseSK2CancelledWithSimulatedError() async throws { try AvailabilityChecks.iOS17APIAvailableOrSkipTest() @@ -525,6 +527,13 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr } func testPurchaseFailureClearsPresentedPaywall() async throws { + // `SKTestSession.setSimulatedError(_:forAPI:)` is part of the StoreKitTest Swift overlay, + // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst. + // This test relies on that fault-injection API, so it's skipped on Catalyst. The method is kept + // defined to satisfy the `PurchasesOrchestratorTests` protocol conformance. + #if targetEnvironment(macCatalyst) + throw XCTSkip("SKTestSession.setSimulatedError(_:forAPI:) is unavailable when compiling for Mac Catalyst") + #else try AvailabilityChecks.iOS17APIAvailableOrSkipTest() #if compiler(>=5.9) if #available(iOS 17.0, tvOS 17.0, macOS 14.0, watchOS 10.0, *) { @@ -581,6 +590,7 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr expect( self.backend.invokedPostReceiptDataParameters?.transactionData.presentedPaywall ).to(beNil()) + #endif } func testCancelEventClearsPresentedPaywall() async throws { @@ -2442,7 +2452,9 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr } } - #if swift(>=5.9) + // `SKTestSession.setSimulatedError(_:forAPI:)` is part of the StoreKitTest Swift overlay, + // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst. + #if swift(>=5.9) && !targetEnvironment(macCatalyst) @available(iOS 17.0, tvOS 17.0, macOS 14.0, watchOS 10.0, *) func testPurchaseWithSimulatedErrorTracksError() async throws { try AvailabilityChecks.iOS17APIAvailableOrSkipTest() diff --git a/Tests/UnitTests/Mocks/MockPurchases.swift b/Tests/UnitTests/Mocks/MockPurchases.swift index 990000a771..43c7716a8f 100644 --- a/Tests/UnitTests/Mocks/MockPurchases.swift +++ b/Tests/UnitTests/Mocks/MockPurchases.swift @@ -341,7 +341,7 @@ extension MockPurchases: PurchasesType { self.unimplemented() } - #if os(iOS) || VISION_OS + #if (os(iOS) && !targetEnvironment(macCatalyst)) || VISION_OS func presentCodeRedemptionSheet() { self.unimplemented() diff --git a/fastlane/README.md b/fastlane/README.md index 71692f2a88..583511f224 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -352,7 +352,7 @@ Creates a new PR after new swiftinterface baseline files were generated [bundle exec] fastlane ios update_swiftinterface_baselines ``` -Generate and update baseline swiftinterface files locally +Generate and update baseline swiftinterface files ### ios compile_autogenerated_header @@ -498,6 +498,22 @@ Create or delete sandbox testers Enable customer center development by cherry-picking a specific commit +### ios notify_pr_ci_failure + +```sh +[bundle exec] fastlane ios notify_pr_ci_failure +``` + + + +### ios clear_pr_ci_failure + +```sh +[bundle exec] fastlane ios clear_pr_ci_failure +``` + + + ---- @@ -511,6 +527,14 @@ Enable customer center development by cherry-picking a specific commit Runs tests on macOS +### mac test_catalyst + +```sh +[bundle exec] fastlane mac test_catalyst +``` + +Runs tests on Mac Catalyst + ---- This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. From 43f202b8ac48a398cb0a40202fe8db98dbb63ed4 Mon Sep 17 00:00:00 2001 From: Antonio Pallares Date: Wed, 3 Jun 2026 11:16:05 +0200 Subject: [PATCH 03/10] test: skip SK2 purchase tests that need a real purchase on Catalyst SKTestSession purchases come back as userCancelled on Mac Catalyst (the purchase dialog can't be suppressed in this headless environment), so the three SK2 tests that require a real completed purchase fail there. Skip them on Catalyst for now via XCTSkip; they keep running on all other platforms. Product fetching itself works fine on Catalyst. Co-authored-by: Cursor --- .../PurchasesOrchestratorSK2Tests.swift | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift b/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift index 09794927d3..4362ce346c 100644 --- a/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift +++ b/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift @@ -210,6 +210,13 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr // MARK: - Purchasing, StoreKit 2 only func testPurchaseSK2IncludesAppUserIdIfUUID() async throws { + // `SKTestSession` purchases come back as `userCancelled` on Mac Catalyst (the purchase + // dialog can't be suppressed in this environment), so tests that require a real completed + // purchase are skipped on Catalyst for now. + #if targetEnvironment(macCatalyst) + throw XCTSkip("SKTestSession purchases return userCancelled on Mac Catalyst") + #endif + let uuid = UUID() self.currentUserProvider = MockCurrentUserProvider(mockAppUserID: uuid.uuidString) self.setUpOrchestrator() @@ -232,6 +239,13 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr } func testPurchaseSK2DoesNotIncludeAppUserIdIfNotUUID() async throws { + // `SKTestSession` purchases come back as `userCancelled` on Mac Catalyst (the purchase + // dialog can't be suppressed in this environment), so tests that require a real completed + // purchase are skipped on Catalyst for now. + #if targetEnvironment(macCatalyst) + throw XCTSkip("SKTestSession purchases return userCancelled on Mac Catalyst") + #endif + self.currentUserProvider = MockCurrentUserProvider(mockAppUserID: "not_a_uuid") self.setUpOrchestrator() self.setUpStoreKit2Listener() @@ -2317,6 +2331,13 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr } func testSyncPurchasesPassesErrorOnFailure() async throws { + // `SKTestSession` purchases come back as `userCancelled` on Mac Catalyst (the purchase + // dialog can't be suppressed in this environment), so tests that require a real completed + // purchase are skipped on Catalyst for now. + #if targetEnvironment(macCatalyst) + throw XCTSkip("SKTestSession purchases return userCancelled on Mac Catalyst") + #endif + let transaction = try await self.createTransaction(finished: true) self.mockTransactionFetcher.stubbedFirstVerifiedTransaction = transaction From 9e83a0b0f719dec609241d7966f59f6c543e7a8a Mon Sep 17 00:00:00 2001 From: Antonio Pallares Date: Wed, 3 Jun 2026 12:30:20 +0200 Subject: [PATCH 04/10] ci: generate Mac Catalyst snapshots with mac-catalyst-26 naming Route Mac Catalyst snapshots into their own `mac-catalyst-26` bucket, teach the `test_catalyst` lane to record snapshots via the CI-Snapshots test plan, and wire `run-test-mac-catalyst` into the snapshot generation workflow + snapshot PR step. Co-authored-by: Cursor --- .circleci/default_config.yml | 5 +++++ Tests/UnitTests/TestHelpers/CurrentTestCaseTracker.swift | 5 +++++ fastlane/Fastfile | 9 ++++++--- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.circleci/default_config.yml b/.circleci/default_config.yml index aae3a77b4e..27bc3569c8 100644 --- a/.circleci/default_config.yml +++ b/.circleci/default_config.yml @@ -1020,6 +1020,10 @@ jobs: - compress_result_bundle: directory: fastlane/test_output/xctest/catalyst bundle_name: RevenueCat + - create-snapshot-pr-if-needed: + condition: << pipeline.parameters.generate_snapshots >> + job: "create_snapshot_pr" + version: "mac-catalyst-26" - store_test_results: path: fastlane/test_output - store_artifacts: @@ -2186,6 +2190,7 @@ workflows: - run-test-ios-15-and-14 - run-test-tvos-and-macos - run-test-watchos + - run-test-mac-catalyst - backend-integration-tests-SK2 # Snapshots from this job are shared with all BackendIntegrationTests diff --git a/Tests/UnitTests/TestHelpers/CurrentTestCaseTracker.swift b/Tests/UnitTests/TestHelpers/CurrentTestCaseTracker.swift index 6397cb51d5..283516dcd5 100644 --- a/Tests/UnitTests/TestHelpers/CurrentTestCaseTracker.swift +++ b/Tests/UnitTests/TestHelpers/CurrentTestCaseTracker.swift @@ -56,6 +56,11 @@ extension CurrentTestCaseTracker { #elseif os(tvOS) let osVersionEquivalent = OSVersionEquivalent.current return "tvOS\(osVersionEquivalent.rawValue)/\(Self.sanitizedTestName)" + #elseif targetEnvironment(macCatalyst) + // Mac Catalyst produces different snapshots than iOS (e.g. `X-Is-Sandbox`), so it gets + // its own snapshot bucket instead of reusing the iOS ones. + let osVersionEquivalent = OSVersionEquivalent.current + return "mac-catalyst-\(osVersionEquivalent.rawValue)/\(Self.sanitizedTestName)" #else let osVersionEquivalent = OSVersionEquivalent.current return "iOS\(osVersionEquivalent.rawValue)/\(Self.sanitizedTestName)" diff --git a/fastlane/Fastfile b/fastlane/Fastfile index cc8a567cdf..4ddcfd64d2 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -2556,17 +2556,20 @@ platform :mac do # Mac Catalyst variant. As of May 2026, StoreKit tests fail to fetch products # on iOS simulators with Xcode 26.4+. This lane is used to check whether the # same StoreKit bug reproduces on Mac Catalyst. + generate_snapshots = ENV["CIRCLECI_TESTS_GENERATE_SNAPSHOTS"] == "true" + test_plan = generate_snapshots ? "CI-Snapshots" : "CI-AllTests" + scan( step_name: "scan - Mac Catalyst", destination: "platform=macOS,arch=arm64,variant=Mac Catalyst", scheme: "RevenueCat", output_types: 'junit', result_bundle: true, - testplan: "CI-AllTests", + testplan: test_plan, configuration: 'Debug', output_directory: "fastlane/test_output/xctest/catalyst", - number_of_retries: 5, # Number of retries in an xcodebuild run - fail_build: true, + number_of_retries: generate_snapshots ? 0 : 5, # Number of retries in an xcodebuild run + fail_build: !generate_snapshots, xcargs: "CODE_SIGN_IDENTITY='' CODE_SIGNING_REQUIRED=NO" ) end From 0806eb8de2a24df93d0b86aea3902e25cf942d03 Mon Sep 17 00:00:00 2001 From: Antonio Pallares Date: Wed, 3 Jun 2026 12:30:27 +0200 Subject: [PATCH 05/10] test: reference Apple bug FB22922982 in Catalyst setSimulatedError notes Document the filed feedback (FB22922982) for the missing StoreKitTest macabi slice in the comments and XCTSkip message. Co-authored-by: Cursor --- Tests/StoreKitUnitTests/ProductsManagerTests.swift | 3 ++- .../PurchasesOrchestratorSK2Tests.swift | 11 +++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Tests/StoreKitUnitTests/ProductsManagerTests.swift b/Tests/StoreKitUnitTests/ProductsManagerTests.swift index ff19c819bb..30fd4044b5 100644 --- a/Tests/StoreKitUnitTests/ProductsManagerTests.swift +++ b/Tests/StoreKitUnitTests/ProductsManagerTests.swift @@ -211,7 +211,8 @@ class SK2ProductsManagerDiagnosticsTrackingTests: ProductsManagerTests { } // `SKTestSession.setSimulatedError(_:forAPI:)` is part of the StoreKitTest Swift overlay, - // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst. + // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst + // (Apple bug FB22922982). #if swift(>=5.9) && !targetEnvironment(macCatalyst) @available(iOS 17.0, tvOS 17.0, macOS 14.0, watchOS 10.0, *) func testFetchProductsWithIdentifiersSK2ErrorTracksCorrectly() async throws { diff --git a/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift b/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift index 4362ce346c..2c948abf52 100644 --- a/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift +++ b/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift @@ -167,7 +167,8 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr } // `SKTestSession.setSimulatedError(_:forAPI:)` is part of the StoreKitTest Swift overlay, - // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst. + // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst + // (Apple bug FB22922982). #if swift(>=5.9) && !targetEnvironment(macCatalyst) @available(iOS 17.0, tvOS 17.0, watchOS 10.0, macOS 14.0, *) func testPurchaseSK2CancelledWithSimulatedError() async throws { @@ -542,11 +543,12 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr func testPurchaseFailureClearsPresentedPaywall() async throws { // `SKTestSession.setSimulatedError(_:forAPI:)` is part of the StoreKitTest Swift overlay, - // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst. + // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst + // (Apple bug FB22922982). // This test relies on that fault-injection API, so it's skipped on Catalyst. The method is kept // defined to satisfy the `PurchasesOrchestratorTests` protocol conformance. #if targetEnvironment(macCatalyst) - throw XCTSkip("SKTestSession.setSimulatedError(_:forAPI:) is unavailable when compiling for Mac Catalyst") + throw XCTSkip("SKTestSession.setSimulatedError(_:forAPI:) is unavailable when compiling for Mac Catalyst (Apple bug FB22922982)") #else try AvailabilityChecks.iOS17APIAvailableOrSkipTest() #if compiler(>=5.9) @@ -2474,7 +2476,8 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr } // `SKTestSession.setSimulatedError(_:forAPI:)` is part of the StoreKitTest Swift overlay, - // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst. + // which ships no Mac Catalyst (macabi) slice in Xcode 26.5, so it can't be compiled for Catalyst + // (Apple bug FB22922982). #if swift(>=5.9) && !targetEnvironment(macCatalyst) @available(iOS 17.0, tvOS 17.0, macOS 14.0, watchOS 10.0, *) func testPurchaseWithSimulatedErrorTracksError() async throws { From e8921985f4c679cccfcbd9ef62c2b9b38afc6bc6 Mon Sep 17 00:00:00 2001 From: Antonio Pallares Date: Wed, 3 Jun 2026 15:02:11 +0200 Subject: [PATCH 06/10] test: ad-hoc sign Catalyst host app so SKTestSession can persist config A fully unsigned Mac Catalyst app has no application container, so SKTestSession cannot persist its configuration (disabling dialogs, clearing transactions, storefront overrides) and every write fails with SKInternalErrorDomain Code=3. That made purchase dialogs reappear and SK2 purchase tests come back userCancelled on Catalyst. Ad-hoc signing the host app (CODE_SIGN_IDENTITY=-, the equivalent of Xcode's "Sign to Run Locally") gives it a stable container, so the config writes succeed. With dialogs now suppressed, the three SK2 purchase tests that previously had to be skipped on Catalyst pass again. Co-authored-by: Cursor --- .../PurchasesOrchestratorSK2Tests.swift | 21 ------------------- fastlane/Fastfile | 9 +++++++- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift b/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift index 2c948abf52..3243fe756b 100644 --- a/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift +++ b/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift @@ -211,13 +211,6 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr // MARK: - Purchasing, StoreKit 2 only func testPurchaseSK2IncludesAppUserIdIfUUID() async throws { - // `SKTestSession` purchases come back as `userCancelled` on Mac Catalyst (the purchase - // dialog can't be suppressed in this environment), so tests that require a real completed - // purchase are skipped on Catalyst for now. - #if targetEnvironment(macCatalyst) - throw XCTSkip("SKTestSession purchases return userCancelled on Mac Catalyst") - #endif - let uuid = UUID() self.currentUserProvider = MockCurrentUserProvider(mockAppUserID: uuid.uuidString) self.setUpOrchestrator() @@ -240,13 +233,6 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr } func testPurchaseSK2DoesNotIncludeAppUserIdIfNotUUID() async throws { - // `SKTestSession` purchases come back as `userCancelled` on Mac Catalyst (the purchase - // dialog can't be suppressed in this environment), so tests that require a real completed - // purchase are skipped on Catalyst for now. - #if targetEnvironment(macCatalyst) - throw XCTSkip("SKTestSession purchases return userCancelled on Mac Catalyst") - #endif - self.currentUserProvider = MockCurrentUserProvider(mockAppUserID: "not_a_uuid") self.setUpOrchestrator() self.setUpStoreKit2Listener() @@ -2333,13 +2319,6 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr } func testSyncPurchasesPassesErrorOnFailure() async throws { - // `SKTestSession` purchases come back as `userCancelled` on Mac Catalyst (the purchase - // dialog can't be suppressed in this environment), so tests that require a real completed - // purchase are skipped on Catalyst for now. - #if targetEnvironment(macCatalyst) - throw XCTSkip("SKTestSession purchases return userCancelled on Mac Catalyst") - #endif - let transaction = try await self.createTransaction(finished: true) self.mockTransactionFetcher.stubbedFirstVerifiedTransaction = transaction diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 4ddcfd64d2..86afda5167 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -2556,6 +2556,13 @@ platform :mac do # Mac Catalyst variant. As of May 2026, StoreKit tests fail to fetch products # on iOS simulators with Xcode 26.4+. This lane is used to check whether the # same StoreKit bug reproduces on Mac Catalyst. + # + # The host app must be ad-hoc signed (`CODE_SIGN_IDENTITY=-`). A fully unsigned + # Mac Catalyst app has no application container, so `SKTestSession` cannot persist + # its configuration (disabling dialogs, clearing transactions, storefront + # overrides) and every write fails with `SKInternalErrorDomain Code=3`, which + # makes purchase dialogs reappear and StoreKit tests fail. Ad-hoc signing (the + # equivalent of Xcode's "Sign to Run Locally") gives the app a stable container. generate_snapshots = ENV["CIRCLECI_TESTS_GENERATE_SNAPSHOTS"] == "true" test_plan = generate_snapshots ? "CI-Snapshots" : "CI-AllTests" @@ -2570,7 +2577,7 @@ platform :mac do output_directory: "fastlane/test_output/xctest/catalyst", number_of_retries: generate_snapshots ? 0 : 5, # Number of retries in an xcodebuild run fail_build: !generate_snapshots, - xcargs: "CODE_SIGN_IDENTITY='' CODE_SIGNING_REQUIRED=NO" + xcargs: "CODE_SIGN_IDENTITY=- CODE_SIGNING_REQUIRED=YES CODE_SIGN_STYLE=Manual" ) end From c067297ced99dd7e15d73e5c954473d0d54bd917 Mon Sep 17 00:00:00 2001 From: RevenueCat Git Bot <72824662+RCGitBot@users.noreply.github.com> Date: Wed, 3 Jun 2026 16:19:31 +0300 Subject: [PATCH 07/10] Generating new test snapshots (#6896) --- .../mac-catalyst-26-testDebugView.1.png | Bin 0 -> 8940 bytes .../mac-catalyst-26-testLoadingState.1.png | Bin 0 -> 3260 bytes ...ac-catalyst-26-testNestedDictionary.1.json | 18 ++++++ ...lyst-26-testGetCustomerCenterConfig.1.json | 30 +++++++++ ...omerCenterConfigCachesForSameUserID.1.json | 30 +++++++++ ...CustomerCenterConfigCallsHTTPMethod.1.json | 30 +++++++++ ...onfigCallsHTTPMethodWithRandomDelay.1.json | 30 +++++++++ ...GetCustomerCenterConfigFailSendsNil.1.json | 30 +++++++++ ...rCenterConfigNetworkErrorSendsError.1.json | 30 +++++++++ ...etCustomerCenterConfigPassesLocales.1.json | 30 +++++++++ ...nterConfigPassesLocalesWithOverride.1.json | 30 +++++++++ ...rConfigDoesntCacheForMultipleUserID.1.json | 30 +++++++++ ...rConfigDoesntCacheForMultipleUserID.2.json | 30 +++++++++ ...testRepeatedRequestsLogDebugMessage.1.json | 30 +++++++++ ...stCachesCustomerGetsForSameCustomer.1.json | 30 +++++++++ ...sntCacheCustomerGetsForSameCustomer.1.json | 30 +++++++++ ...sntCacheCustomerGetsForSameCustomer.2.json | 30 +++++++++ ...testGetCustomerCallsBackendProperly.1.json | 30 +++++++++ ...tCustomerInfoDoesNotMakeTwoRequests.1.json | 30 +++++++++ ...tCustomerInfoWithFailedVerification.1.json | 30 +++++++++ ...GetCustomerInfoWithVerifiedResponse.1.json | 30 +++++++++ ...ac-catalyst-26-testGetsCustomerInfo.1.json | 30 +++++++++ ...26-testHandlesGetCustomerInfoErrors.1.json | 30 +++++++++ ...-catalyst-26-testHandlesInvalidJSON.1.json | 30 +++++++++ ...talyst-26-testSendsNonceWhenEnabled.1.json | 32 +++++++++ ...pdatesRequestDateFromResponseHeader.1.json | 30 +++++++++ ...st-26-testEligibilityUnknownIfError.1.json | 37 +++++++++++ ...estEligibilityUnknownIfUnknownError.1.json | 37 +++++++++++ ...lyst-26-testPostsProductIdentifiers.1.json | 38 +++++++++++ ...lementsDoesntCacheForMultipleUserID.1.json | 30 +++++++++ ...lementsDoesntCacheForMultipleUserID.2.json | 30 +++++++++ ...testGetOfferingsCachesForSameUserID.1.json | 30 +++++++++ ...-26-testGetOfferingsCallsHTTPMethod.1.json | 30 +++++++++ ...ringsCallsHTTPMethodWithRandomDelay.1.json | 30 +++++++++ ...yst-26-testGetOfferingsFailSendsNil.1.json | 30 +++++++++ ...tGetOfferingsNetworkErrorSendsError.1.json | 30 +++++++++ ...lyst-26-testGetOfferingsOneOffering.1.json | 30 +++++++++ ...ingsSetsOriginalSourceToFallbackUrl.1.json | 30 +++++++++ ...SourceToFallbackUrlWhenBothFlagsSet.1.json | 30 +++++++++ ...ingsSetsOriginalSourceToLoadShedder.1.json | 30 +++++++++ ...ringsSetsOriginalSourceToMainServer.1.json | 30 +++++++++ ...testRepeatedRequestsLogDebugMessage.1.json | 30 +++++++++ ...estCoalescedRequestsLogDebugMessage.1.json | 30 +++++++++ ...-testGetRemoteConfigCallsHTTPMethod.1.json | 30 +++++++++ ...ConfigCoalescesSimultaneousRequests.1.json | 30 +++++++++ ...6-testGetRemoteConfigFailSendsError.1.json | 30 +++++++++ ...tRemoteConfigNetworkErrorSendsError.1.json | 30 +++++++++ ...tGetRemoteConfigParsesEmptyResponse.1.json | 30 +++++++++ ...stGetRemoteConfigParsesFullResponse.1.json | 30 +++++++++ ...-testGetRemoteConfigUsesCorrectPath.1.json | 30 +++++++++ ...aultJitterableDelayWhenBackgrounded.1.json | 30 +++++++++ ...onfigUsesNoDelayWhenNotBackgrounded.1.json | 30 +++++++++ ...rdVerificationStatusCallsHTTPMethod.1.json | 30 +++++++++ ...ConcurrentCallsForSameTransactionID.1.json | 30 +++++++++ ...DedupeAcrossDifferentTransactionIDs.1.json | 30 +++++++++ ...DedupeAcrossDifferentTransactionIDs.2.json | 30 +++++++++ ...ardVerificationStatusFailSendsError.1.json | 30 +++++++++ ...stGetRewardVerificationStatusFailed.1.json | 30 +++++++++ ...icationStatusNetworkErrorSendsError.1.json | 30 +++++++++ ...tGetRewardVerificationStatusPending.1.json | 30 +++++++++ ...sForSameTransactionIDReissueRequest.1.json | 30 +++++++++ ...sForSameTransactionIDReissueRequest.2.json | 30 +++++++++ ...StatusUnknownStatusDecodesAsUnknown.1.json | 30 +++++++++ ...GetRewardVerificationStatusVerified.1.json | 30 +++++++++ ...irtualCurrenciesCachesForSameUserID.1.json | 30 +++++++++ ...GetVirtualCurrenciesCallsHTTPMethod.1.json | 30 +++++++++ ...renciesDoesntCacheForMultipleUserID.1.json | 30 +++++++++ ...renciesDoesntCacheForMultipleUserID.2.json | 30 +++++++++ ...tGetVirtualCurrenciesFailSendsError.1.json | 30 +++++++++ ...ualCurrenciesNetworkErrorSendsError.1.json | 30 +++++++++ ...estGetVirtualCurrenciesNoCurrencies.1.json | 30 +++++++++ ...stGetVirtualCurrenciesTwoCurrencies.1.json | 30 +++++++++ ...tJitterableDelayWhenAppBackgrounded.1.json | 30 +++++++++ ...tterableDelayWhenAppNotBackgrounded.1.json | 30 +++++++++ ...testRepeatedRequestsLogDebugMessage.1.json | 30 +++++++++ ...ctsCachesForSameUserIDAndProductIds.1.json | 30 +++++++++ ...etWebBillingProductsCallsHTTPMethod.1.json | 30 +++++++++ ...gProductsCallsHTTPMethodWithNoDelay.1.json | 30 +++++++++ ...tsDoesntCacheForDifferentProductIds.1.json | 30 +++++++++ ...tsDoesntCacheForDifferentProductIds.2.json | 30 +++++++++ ...roductsDoesntCacheForMultipleUserID.1.json | 30 +++++++++ ...roductsDoesntCacheForMultipleUserID.2.json | 30 +++++++++ ...GetWebBillingProductsFailSendsError.1.json | 30 +++++++++ ...llingProductsNetworkErrorSendsError.1.json | 30 +++++++++ ...estGetWebBillingProductsTwoProducts.1.json | 30 +++++++++ ...testRepeatedRequestsLogDebugMessage.1.json | 30 +++++++++ ...OfferingProductsCachesForSameUserID.1.json | 30 +++++++++ ...tWebOfferingProductsCallsHTTPMethod.1.json | 30 +++++++++ ...gProductsCallsHTTPMethodWithNoDelay.1.json | 30 +++++++++ ...roductsDoesntCacheForMultipleUserID.1.json | 30 +++++++++ ...roductsDoesntCacheForMultipleUserID.2.json | 30 +++++++++ ...etWebOfferingProductsFailSendsError.1.json | 30 +++++++++ ...eringProductsNetworkErrorSendsError.1.json | 30 +++++++++ ...stGetWebOfferingProductsOneOffering.1.json | 30 +++++++++ ...testRepeatedRequestsLogDebugMessage.1.json | 30 +++++++++ ...lowCachesForSameUserIDAndWorkflowId.1.json | 30 +++++++++ ...26-testGetWorkflowInlineUnwrapsData.1.json | 30 +++++++++ ...tWorkflowInlineWithEnrolledVariants.1.json | 30 +++++++++ ...testGetWorkflowPropagatesHTTPErrors.1.json | 30 +++++++++ ...flowUseCdnFetchesWorkflowFromCdnUrl.1.json | 30 +++++++++ ...testGetWorkflowsCachesForSameUserID.1.json | 30 +++++++++ ...-26-testGetWorkflowsCallsHTTPMethod.1.json | 30 +++++++++ ...thodWithRandomDelayWhenBackgrounded.1.json | 30 +++++++++ ...tGetWorkflowsNetworkErrorSendsError.1.json | 30 +++++++++ ...26-testGetWorkflowsReturnsWorkflows.1.json | 30 +++++++++ ...rkflowsWithTypePassesQueryParameter.1.json | 30 +++++++++ ...testHealthRequestIsNotAuthenticated.1.json | 29 +++++++++ ...yst-26-testHealthRequestWithFailure.1.json | 29 +++++++++ ...yst-26-testHealthRequestWithSuccess.1.json | 29 +++++++++ ...testRepeatedRequestsLogDebugMessage.1.json | 32 +++++++++ ...estRestoreEligibilityFailSendsError.1.json | 32 +++++++++ ...reEligibilityNetworkErrorSendsError.1.json | 32 +++++++++ ...reEligibilityReturnsDecodedResponse.1.json | 32 +++++++++ ...toreEligibilitySendsExpectedRequest.1.json | 32 +++++++++ ...tJitterableDelayWhenAppBackgrounded.1.json | 32 +++++++++ ...tterableDelayWhenAppNotBackgrounded.1.json | 32 +++++++++ ...st-26-testLoginCachesForSameUserIDs.1.json | 33 ++++++++++ ...oginCallsAllCompletionBlocksInCache.1.json | 33 ++++++++++ ...ithCustomerInfoAndCreatedFalseIf200.1.json | 33 ++++++++++ ...ithCustomerInfoAndCreatedFalseIf201.1.json | 33 ++++++++++ ...etionWithErrorIfCustomerInfoIsEmpty.1.json | 33 ++++++++++ ...oesntCacheForDifferentCurrentUserID.1.json | 33 ++++++++++ ...oesntCacheForDifferentCurrentUserID.2.json | 33 ++++++++++ ...ginDoesntCacheForDifferentNewUserID.1.json | 33 ++++++++++ ...ginDoesntCacheForDifferentNewUserID.2.json | 33 ++++++++++ ...atalyst-26-testLoginMakesRightCalls.1.json | 33 ++++++++++ ...sesNetworkErrorIfCouldntCommunicate.1.json | 33 ++++++++++ ...-26-testLoginWithFailedVerification.1.json | 36 +++++++++++ ...st-26-testLoginWithVerifiedResponse.1.json | 36 +++++++++++ ...26-testGetProductEntitlementMapping.1.json | 30 +++++++++ ...titlementMappingCachesForSameUserID.1.json | 30 +++++++++ ...6-testPostAdServicesCallsHttpClient.1.json | 32 +++++++++ ...testPostAttributesPutsDataInDataKey.1.json | 36 +++++++++++ ...tCreateTicketSendsCorrectParameters.1.json | 34 ++++++++++ ...stCreateTicketUsesCorrectHTTPMethod.1.json | 34 ++++++++++ ...tPostCreateTicketWithFailedResponse.1.json | 34 ++++++++++ ...estPostCreateTicketWithNetworkError.1.json | 34 ++++++++++ ...6-testPostCreateTicketWithValidData.1.json | 34 ++++++++++ ...DiagnosticsEventsWithMultipleEvents.1.json | 53 +++++++++++++++ ...stPostDiagnosticsEventsWithOneEvent.1.json | 43 ++++++++++++ ...yst-26-testOfferForSigningCorrectly.1.json | 40 ++++++++++++ ...tOfferForSigningEmptyOffersResponse.1.json | 40 ++++++++++++ ...-26-testOfferForSigningNetworkError.1.json | 40 ++++++++++++ ...ngNoDataAndNoSignatureErrorResponse.1.json | 40 ++++++++++++ ...ferForSigningSignatureErrorResponse.1.json | 40 ++++++++++++ ...26-testCachesRequestsForSameReceipt.1.json | 45 +++++++++++++ ...yst-26-testDoesNotPostConsentStatus.1.json | 40 ++++++++++++ ...testDoesntCacheForDifferentCurrency.1.json | 45 +++++++++++++ ...testDoesntCacheForDifferentCurrency.2.json | 49 ++++++++++++++ ...estDoesntCacheForDifferentDiscounts.1.json | 45 +++++++++++++ ...estDoesntCacheForDifferentDiscounts.2.json | 56 ++++++++++++++++ ...testDoesntCacheForDifferentOffering.1.json | 46 +++++++++++++ ...testDoesntCacheForDifferentOffering.2.json | 46 +++++++++++++ ...estDoesntCacheForDifferentOfferings.1.json | 45 +++++++++++++ ...estDoesntCacheForDifferentOfferings.2.json | 46 +++++++++++++ ...testDoesntCacheForDifferentReceipts.1.json | 45 +++++++++++++ ...testDoesntCacheForDifferentReceipts.2.json | 45 +++++++++++++ ...-testDoesntCacheForDifferentRestore.1.json | 45 +++++++++++++ ...-testDoesntCacheForDifferentRestore.2.json | 45 +++++++++++++ ...rrorIsForwardedForCustomerInfoCalls.1.json | 45 +++++++++++++ ...lyst-26-testFreeTrialPostsCorrectly.1.json | 50 ++++++++++++++ ...sEntitlementsWithFailedVerification.1.json | 48 ++++++++++++++ ...etsEntitlementsWithVerifiedResponse.1.json | 48 ++++++++++++++ ...tGetsUpdatedSubscriberInfoAfterPost.1.json | 30 +++++++++ ...tGetsUpdatedSubscriberInfoAfterPost.2.json | 45 +++++++++++++ ...yst-26-testIndividualParamsCanBeNil.1.json | 49 ++++++++++++++ ...yst-26-testPayAsYouGoPostsCorrectly.1.json | 50 ++++++++++++++ ...yst-26-testPayUpFrontPostsCorrectly.1.json | 50 ++++++++++++++ ...ngReceiptCreatesACustomerInfoObject.1.json | 45 +++++++++++++ ...onAndServerErrorComputesOfflineUser.1.json | 49 ++++++++++++++ ...taAndServerErrorComputesOfflineUser.1.json | 45 +++++++++++++ ...stsJWSTokenWithProductDataCorrectly.1.json | 49 ++++++++++++++ ...st-26-testPostsReceiptDataCorrectly.1.json | 45 +++++++++++++ ...AppTransactionAndNoReceiptCorrectly.1.json | 45 +++++++++++++ ...eiptDataWithAppTransactionCorrectly.1.json | 50 ++++++++++++++ ...eceiptDataWithDiscountInfoCorrectly.1.json | 57 ++++++++++++++++ ...iptDataWithPresentedOfferingContext.1.json | 56 ++++++++++++++++ ...ostsReceiptDataWithPresentedPaywall.1.json | 59 +++++++++++++++++ ...ptDataWithPresentedPaywallAndSource.1.json | 60 +++++++++++++++++ ...ReceiptDataWithProductDataCorrectly.1.json | 49 ++++++++++++++ ...DataWithProductRequestDataCorrectly.1.json | 51 +++++++++++++++ ...eceiptDataWithTestReceiptIdentifier.1.json | 50 ++++++++++++++ ...ceiptDataWithTransactionIdCorrectly.1.json | 50 ++++++++++++++ ...codeReceiptWithProductDataCorrectly.1.json | 49 ++++++++++++++ ...bPurchaseReturnsCorrectCustomerInfo.1.json | 33 ++++++++++ ...aseReturnsExpectedInvalidTokenError.1.json | 33 ++++++++++ ...WebPurchaseReturnsExpiredTokenError.1.json | 33 ++++++++++ ...urnsPurchaseBelongsToOtherUserError.1.json | 33 ++++++++++ ...-testRequestContainsSignatureHeader.1.json | 31 +++++++++ ...stFailsIfSignatureVerificationFails.1.json | 31 +++++++++ ...PostPaywallEventsWithMultipleEvents.1.json | 61 ++++++++++++++++++ ...6-testPostPaywallEventsWithOneEvent.1.json | 47 ++++++++++++++ ...wallEventsWithPlacementAndTargeting.1.json | 52 +++++++++++++++ ...-testPostReceiptWithAdServicesToken.1.json | 46 +++++++++++++ ...esCustomerInfoIfStatusCodeIsSuccess.1.json | 54 ++++++++++++++++ ...PassesErrorIfStatusCodeIsNotSuccess.1.json | 54 ++++++++++++++++ ...hSubscriberAttributesReturnsBadJson.1.json | 54 ++++++++++++++++ ...scriberAttributesSendsThemCorrectly.1.json | 54 ++++++++++++++++ ...ithoutSubscriberAttributesSkipsThem.1.json | 46 +++++++++++++ ...esCallsCompletionInNetworkErrorCase.1.json | 42 ++++++++++++ ...ributesCallsCompletionInSuccessCase.1.json | 42 ++++++++++++ ...CompletionWithErrorInBadRequestCase.1.json | 42 ++++++++++++ ...ttributesSendsAttributesErrorsIfAny.1.json | 42 ++++++++++++ ...riberAttributesSendsRightParameters.1.json | 42 ++++++++++++ 204 files changed, 7211 insertions(+) create mode 100644 Tests/StoreKitUnitTests/Support/__Snapshots__/DebugViewSwiftUITests/mac-catalyst-26-testDebugView.1.png create mode 100644 Tests/StoreKitUnitTests/Support/__Snapshots__/DebugViewSwiftUITests/mac-catalyst-26-testLoadingState.1.png create mode 100644 Tests/UnitTests/Misc/__Snapshots__/AnyEncodableTests/mac-catalyst-26-testNestedDictionary.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfig.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCachesForSameUserID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethod.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethodWithRandomDelay.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigFailSendsNil.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigNetworkErrorSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocales.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocalesWithOverride.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testCachesCustomerGetsForSameCustomer.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerCallsBackendProperly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoDoesNotMakeTwoRequests.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithFailedVerification.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithVerifiedResponse.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetsCustomerInfo.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesGetCustomerInfoErrors.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesInvalidJSON.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testSendsNonceWhenEnabled.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testUpdatesRequestDateFromResponseHeader.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfUnknownError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testPostsProductIdentifiers.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCachesForSameUserID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethod.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethodWithRandomDelay.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsFailSendsNil.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsNetworkErrorSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsOneOffering.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrl.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrlWhenBothFlagsSet.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToLoadShedder.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToMainServer.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testCoalescedRequestsLogDebugMessage.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCallsHTTPMethod.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCoalescesSimultaneousRequests.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigFailSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigNetworkErrorSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesEmptyResponse.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesFullResponse.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesCorrectPath.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesDefaultJitterableDelayWhenBackgrounded.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesNoDelayWhenNotBackgrounded.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusCallsHTTPMethod.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDedupesConcurrentCallsForSameTransactionID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailed.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusNetworkErrorSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusPending.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusUnknownStatusDecodesAsUnknown.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusVerified.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCachesForSameUserID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCallsHTTPMethod.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesFailSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNetworkErrorSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNoCurrencies.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesTwoCurrencies.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppBackgrounded.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppNotBackgrounded.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCachesForSameUserIDAndProductIds.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethod.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethodWithNoDelay.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsFailSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsNetworkErrorSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsTwoProducts.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCachesForSameUserID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethod.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethodWithNoDelay.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsFailSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsNetworkErrorSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsOneOffering.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowCachesForSameUserIDAndWorkflowId.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineUnwrapsData.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineWithEnrolledVariants.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowPropagatesHTTPErrors.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowUseCdnFetchesWorkflowFromCdnUrl.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCachesForSameUserID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethod.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethodWithRandomDelayWhenBackgrounded.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsNetworkErrorSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsReturnsWorkflows.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsWithTypePassesQueryParameter.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestIsNotAuthenticated.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithFailure.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithSuccess.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityFailSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityNetworkErrorSendsError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityReturnsDecodedResponse.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilitySendsExpectedRequest.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesDefaultJitterableDelayWhenAppBackgrounded.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesNoJitterableDelayWhenAppNotBackgrounded.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCachesForSameUserIDs.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsAllCompletionBlocksInCache.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf200.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf201.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithErrorIfCustomerInfoIsEmpty.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginMakesRightCalls.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginPassesNetworkErrorIfCouldntCommunicate.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithFailedVerification.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithVerifiedResponse.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMapping.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMappingCachesForSameUserID.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAdServicesTokenTests/mac-catalyst-26-testPostAdServicesCallsHttpClient.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAttributionDataTests/mac-catalyst-26-testPostAttributesPutsDataInDataKey.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketSendsCorrectParameters.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketUsesCorrectHTTPMethod.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithFailedResponse.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithNetworkError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithValidData.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithMultipleEvents.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithOneEvent.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningCorrectly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningEmptyOffersResponse.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNetworkError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNoDataAndNoSignatureErrorResponse.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningSignatureErrorResponse.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testCachesRequestsForSameReceipt.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesNotPostConsentStatus.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testErrorIsForwardedForCustomerInfoCalls.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testFreeTrialPostsCorrectly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithFailedVerification.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithVerifiedResponse.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.2.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testIndividualParamsCanBeNil.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayAsYouGoPostsCorrectly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayUpFrontPostsCorrectly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptCreatesACustomerInfoObject.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptForSubscriptionAndServerErrorComputesOfflineUser.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptWithNoProductDataAndServerErrorComputesOfflineUser.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsJWSTokenWithProductDataCorrectly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataCorrectly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionAndNoReceiptCorrectly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionCorrectly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithDiscountInfoCorrectly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedOfferingContext.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywall.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywallAndSource.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductDataCorrectly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductRequestDataCorrectly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTestReceiptIdentifier.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTransactionIdCorrectly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsSK2XcodeReceiptWithProductDataCorrectly.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsCorrectCustomerInfo.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpectedInvalidTokenError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpiredTokenError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsPurchaseBelongsToOtherUserError.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestContainsSignatureHeader.1.json create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestFailsIfSignatureVerificationFails.1.json create mode 100644 Tests/UnitTests/Paywalls/Events/__Snapshots__/BackendPaywallEventTests/mac-catalyst-26-testPostPaywallEventsWithMultipleEvents.1.json create mode 100644 Tests/UnitTests/Paywalls/Events/__Snapshots__/BackendPaywallEventTests/mac-catalyst-26-testPostPaywallEventsWithOneEvent.1.json create mode 100644 Tests/UnitTests/Paywalls/Events/__Snapshots__/BackendPaywallEventTests/mac-catalyst-26-testPostPaywallEventsWithPlacementAndTargeting.1.json create mode 100644 Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithAdServicesToken.1.json create mode 100644 Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesPassesCustomerInfoIfStatusCodeIsSuccess.1.json create mode 100644 Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesPassesErrorIfStatusCodeIsNotSuccess.1.json create mode 100644 Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesReturnsBadJson.1.json create mode 100644 Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesSendsThemCorrectly.1.json create mode 100644 Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithoutSubscriberAttributesSkipsThem.1.json create mode 100644 Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesCallsCompletionInNetworkErrorCase.1.json create mode 100644 Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesCallsCompletionInSuccessCase.1.json create mode 100644 Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesCallsCompletionWithErrorInBadRequestCase.1.json create mode 100644 Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesSendsAttributesErrorsIfAny.1.json create mode 100644 Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesSendsRightParameters.1.json diff --git a/Tests/StoreKitUnitTests/Support/__Snapshots__/DebugViewSwiftUITests/mac-catalyst-26-testDebugView.1.png b/Tests/StoreKitUnitTests/Support/__Snapshots__/DebugViewSwiftUITests/mac-catalyst-26-testDebugView.1.png new file mode 100644 index 0000000000000000000000000000000000000000..3deaf0fe630ce8d4dcd8a6ac0b3406a231f86a97 GIT binary patch literal 8940 zcmeAS@N?(olHy`uVBq!ia0y~yU_8XYz}&*Y1{5)BGn55VjKx9jP7LeL$-D$|T2doC z(|mmyw18|523AHP24;{FAY@>aVqgWc85q16rQz%#Mh&PMCI*J~Oa>OHnkXO*0v~fJvzld#Md5FtPr^A VC=*dF1sw5U@O1TaS?83{1OSY^-OB&~ literal 0 HcmV?d00001 diff --git a/Tests/StoreKitUnitTests/Support/__Snapshots__/DebugViewSwiftUITests/mac-catalyst-26-testLoadingState.1.png b/Tests/StoreKitUnitTests/Support/__Snapshots__/DebugViewSwiftUITests/mac-catalyst-26-testLoadingState.1.png new file mode 100644 index 0000000000000000000000000000000000000000..b6be25a978da1f0fa2f5d29860b4de42b970fffc GIT binary patch literal 3260 zcmeAS@N?(olHy`uVBq!ia0y~yVAKKP2^?%d5s}i^Y9Pf}9OUlAuRWfWpy1}OnT21Y3cRxq1^!HZEE&JJSKfU03)U}(=|V1cTM0@5Jh0mMMv zP?~uGBf`W5Ofc1qIt!TL>+P|3u^V#LIz9Xxdb3x|Y`y+eb8+ku4CRYFr37@ME6a|oQ^kXYjr+9afq zu;C8_BaSVOG9&MM5w!nsTTk}JWy;Nzf>zy883D4l^>gTe~DWM4fg}0yD literal 0 HcmV?d00001 diff --git a/Tests/UnitTests/Misc/__Snapshots__/AnyEncodableTests/mac-catalyst-26-testNestedDictionary.1.json b/Tests/UnitTests/Misc/__Snapshots__/AnyEncodableTests/mac-catalyst-26-testNestedDictionary.1.json new file mode 100644 index 0000000000..f58e2a124e --- /dev/null +++ b/Tests/UnitTests/Misc/__Snapshots__/AnyEncodableTests/mac-catalyst-26-testNestedDictionary.1.json @@ -0,0 +1,18 @@ +{ + "a" : 1, + "b" : { + "b1" : false, + "b2" : { + "b21" : 1, + "b22" : "https:\/\/google.com" + }, + "b3" : [ + 20.2, + 19.99, + 5 + ], + "b4" : 50000 + }, + "c" : "3", + "d" : null +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfig.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfig.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfig.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCachesForSameUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCachesForSameUserID.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCachesForSameUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethod.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethodWithRandomDelay.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethodWithRandomDelay.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigCallsHTTPMethodWithRandomDelay.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigFailSendsNil.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigFailSendsNil.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigFailSendsNil.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocales.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocales.1.json new file mode 100644 index 0000000000..93ab40d14c --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocales.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN,es_ES", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocalesWithOverride.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocalesWithOverride.1.json new file mode 100644 index 0000000000..cbf5b64835 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerCenterConfigPassesLocalesWithOverride.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "fr_FR,en_EN,es_ES", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.2.json new file mode 100644 index 0000000000..324f243cf1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testGetCustomerConfigDoesntCacheForMultipleUserID.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user_id_2" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..8c671c3bca --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerCenterConfigTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/customercenter/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testCachesCustomerGetsForSameCustomer.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testCachesCustomerGetsForSameCustomer.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testCachesCustomerGetsForSameCustomer.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.2.json new file mode 100644 index 0000000000..eb104384ad --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testDoesntCacheCustomerGetsForSameCustomer.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user_id_2" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerCallsBackendProperly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerCallsBackendProperly.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerCallsBackendProperly.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoDoesNotMakeTwoRequests.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoDoesNotMakeTwoRequests.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoDoesNotMakeTwoRequests.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithFailedVerification.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithFailedVerification.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithFailedVerification.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithVerifiedResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithVerifiedResponse.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetCustomerInfoWithVerifiedResponse.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetsCustomerInfo.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetsCustomerInfo.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testGetsCustomerInfo.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesGetCustomerInfoErrors.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesGetCustomerInfoErrors.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesGetCustomerInfoErrors.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesInvalidJSON.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesInvalidJSON.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testHandlesInvalidJSON.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testSendsNonceWhenEnabled.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testSendsNonceWhenEnabled.1.json new file mode 100644 index 0000000000..3fe0da469c --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testSendsNonceWhenEnabled.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testUpdatesRequestDateFromResponseHeader.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testUpdatesRequestDateFromResponseHeader.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetCustomerInfoTests/mac-catalyst-26-testUpdatesRequestDateFromResponseHeader.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfError.1.json new file mode 100644 index 0000000000..7504d505cd --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfError.1.json @@ -0,0 +1,37 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "AQI=", + "product_identifiers" : [ + "producta", + "productb", + "productc" + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/intro_eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfUnknownError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfUnknownError.1.json new file mode 100644 index 0000000000..7504d505cd --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testEligibilityUnknownIfUnknownError.1.json @@ -0,0 +1,37 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "AQI=", + "product_identifiers" : [ + "producta", + "productb", + "productc" + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/intro_eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testPostsProductIdentifiers.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testPostsProductIdentifiers.1.json new file mode 100644 index 0000000000..1f05260c0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetIntroEligibilityTests/mac-catalyst-26-testPostsProductIdentifiers.1.json @@ -0,0 +1,38 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "AQID", + "product_identifiers" : [ + "producta", + "productb", + "productc", + "productd" + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/intro_eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.2.json new file mode 100644 index 0000000000..4b1d956f0e --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetEntitlementsDoesntCacheForMultipleUserID.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user_id_2/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCachesForSameUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCachesForSameUserID.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCachesForSameUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethod.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethodWithRandomDelay.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethodWithRandomDelay.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsCallsHTTPMethodWithRandomDelay.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsFailSendsNil.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsFailSendsNil.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsFailSendsNil.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsOneOffering.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsOneOffering.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsOneOffering.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrl.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrl.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrl.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrlWhenBothFlagsSet.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrlWhenBothFlagsSet.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToFallbackUrlWhenBothFlagsSet.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToLoadShedder.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToLoadShedder.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToLoadShedder.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToMainServer.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToMainServer.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testGetOfferingsSetsOriginalSourceToMainServer.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..e796b52ef0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetOfferingsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/offerings" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testCoalescedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testCoalescedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testCoalescedRequestsLogDebugMessage.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCallsHTTPMethod.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCoalescesSimultaneousRequests.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCoalescesSimultaneousRequests.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigCoalescesSimultaneousRequests.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigFailSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigFailSendsError.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigFailSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesEmptyResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesEmptyResponse.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesEmptyResponse.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesFullResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesFullResponse.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigParsesFullResponse.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesCorrectPath.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesCorrectPath.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesCorrectPath.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesDefaultJitterableDelayWhenBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesDefaultJitterableDelayWhenBackgrounded.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesDefaultJitterableDelayWhenBackgrounded.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesNoDelayWhenNotBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesNoDelayWhenNotBackgrounded.1.json new file mode 100644 index 0000000000..6fd0f34373 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRemoteConfigTests/mac-catalyst-26-testGetRemoteConfigUsesNoDelayWhenNotBackgrounded.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v2/config" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusCallsHTTPMethod.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDedupesConcurrentCallsForSameTransactionID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDedupesConcurrentCallsForSameTransactionID.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDedupesConcurrentCallsForSameTransactionID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.2.json new file mode 100644 index 0000000000..d42fdf22d0 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusDoesNotDedupeAcrossDifferentTransactionIDs.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/ZZZZZZZZ-9999-8888-7777-666655554444" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailSendsError.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailed.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailed.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusFailed.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusPending.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusPending.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusPending.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.2.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusSequentialCallsForSameTransactionIDReissueRequest.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusUnknownStatusDecodesAsUnknown.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusUnknownStatusDecodesAsUnknown.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusUnknownStatusDecodesAsUnknown.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusVerified.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusVerified.1.json new file mode 100644 index 0000000000..d6cb891646 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetRewardVerificationStatusTests/mac-catalyst-26-testGetRewardVerificationStatusVerified.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/ads/reward_verifications/AABBCCDD-1111-2222-3333-444455556666" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCachesForSameUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCachesForSameUserID.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCachesForSameUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCallsHTTPMethod.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.2.json new file mode 100644 index 0000000000..25a28da98e --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesDoesntCacheForMultipleUserID.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user_id_2/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesFailSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesFailSendsError.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesFailSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNoCurrencies.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNoCurrencies.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesNoCurrencies.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesTwoCurrencies.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesTwoCurrencies.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesTwoCurrencies.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppBackgrounded.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppBackgrounded.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppNotBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppNotBackgrounded.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testGetVirtualCurrenciesUsesDefaultJitterableDelayWhenAppNotBackgrounded.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..5fc453ad7f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetVirtualCurrenciesTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/virtual_currencies" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCachesForSameUserIDAndProductIds.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCachesForSameUserIDAndProductIds.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCachesForSameUserIDAndProductIds.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethod.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethodWithNoDelay.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethodWithNoDelay.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsCallsHTTPMethodWithNoDelay.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.2.json new file mode 100644 index 0000000000..46a8bf738f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForDifferentProductIds.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_lifetime" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.2.json new file mode 100644 index 0000000000..0ade6d1a50 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsDoesntCacheForMultipleUserID.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user_id_2/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsFailSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsFailSendsError.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsFailSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsTwoProducts.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsTwoProducts.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testGetWebBillingProductsTwoProducts.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..555537fda1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebBillingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/products?id=test_monthly" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCachesForSameUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCachesForSameUserID.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCachesForSameUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethod.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethodWithNoDelay.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethodWithNoDelay.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsCallsHTTPMethodWithNoDelay.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.2.json new file mode 100644 index 0000000000..7d66ebe0b7 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsDoesntCacheForMultipleUserID.2.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user_id_2/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsFailSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsFailSendsError.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsFailSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsOneOffering.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsOneOffering.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testGetWebOfferingProductsOneOffering.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..419c9a8f0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWebOfferingProductsTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/rcbilling/v1/subscribers/user/offering_products" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowCachesForSameUserIDAndWorkflowId.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowCachesForSameUserIDAndWorkflowId.1.json new file mode 100644 index 0000000000..8cf7a9812f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowCachesForSameUserIDAndWorkflowId.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows/wf_1" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineUnwrapsData.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineUnwrapsData.1.json new file mode 100644 index 0000000000..8cf7a9812f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineUnwrapsData.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows/wf_1" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineWithEnrolledVariants.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineWithEnrolledVariants.1.json new file mode 100644 index 0000000000..8cf7a9812f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowInlineWithEnrolledVariants.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows/wf_1" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowPropagatesHTTPErrors.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowPropagatesHTTPErrors.1.json new file mode 100644 index 0000000000..9ff45f1bde --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowPropagatesHTTPErrors.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows/wf_missing" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowUseCdnFetchesWorkflowFromCdnUrl.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowUseCdnFetchesWorkflowFromCdnUrl.1.json new file mode 100644 index 0000000000..8cf7a9812f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowUseCdnFetchesWorkflowFromCdnUrl.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows/wf_1" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCachesForSameUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCachesForSameUserID.1.json new file mode 100644 index 0000000000..a8b893d861 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCachesForSameUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethod.1.json new file mode 100644 index 0000000000..a8b893d861 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethod.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethodWithRandomDelayWhenBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethodWithRandomDelayWhenBackgrounded.1.json new file mode 100644 index 0000000000..a8b893d861 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsCallsHTTPMethodWithRandomDelayWhenBackgrounded.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..a8b893d861 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsNetworkErrorSendsError.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsReturnsWorkflows.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsReturnsWorkflows.1.json new file mode 100644 index 0000000000..a8b893d861 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsReturnsWorkflows.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsWithTypePassesQueryParameter.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsWithTypePassesQueryParameter.1.json new file mode 100644 index 0000000000..c4ad3967ff --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendGetWorkflowsTests/mac-catalyst-26-testGetWorkflowsWithTypePassesQueryParameter.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user/workflows?type=paywall" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestIsNotAuthenticated.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestIsNotAuthenticated.1.json new file mode 100644 index 0000000000..7ce17c8261 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestIsNotAuthenticated.1.json @@ -0,0 +1,29 @@ +{ + "headers" : { + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/health" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithFailure.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithFailure.1.json new file mode 100644 index 0000000000..7ce17c8261 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithFailure.1.json @@ -0,0 +1,29 @@ +{ + "headers" : { + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/health" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithSuccess.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithSuccess.1.json new file mode 100644 index 0000000000..7ce17c8261 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendInternalTests/mac-catalyst-26-testHealthRequestWithSuccess.1.json @@ -0,0 +1,29 @@ +{ + "headers" : { + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/health" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRepeatedRequestsLogDebugMessage.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityFailSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityFailSendsError.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityFailSendsError.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityNetworkErrorSendsError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityNetworkErrorSendsError.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityNetworkErrorSendsError.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityReturnsDecodedResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityReturnsDecodedResponse.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityReturnsDecodedResponse.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilitySendsExpectedRequest.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilitySendsExpectedRequest.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilitySendsExpectedRequest.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesDefaultJitterableDelayWhenAppBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesDefaultJitterableDelayWhenAppBackgrounded.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesDefaultJitterableDelayWhenAppBackgrounded.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesNoJitterableDelayWhenAppNotBackgrounded.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesNoJitterableDelayWhenAppNotBackgrounded.1.json new file mode 100644 index 0000000000..923c068644 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendIsPurchaseAllowedByRestoreBehaviorTests/mac-catalyst-26-testRestoreEligibilityUsesNoJitterableDelayWhenAppNotBackgrounded.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "fetch_token" : "jws-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/restore/eligibility" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCachesForSameUserIDs.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCachesForSameUserIDs.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCachesForSameUserIDs.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsAllCompletionBlocksInCache.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsAllCompletionBlocksInCache.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsAllCompletionBlocksInCache.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf200.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf200.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf200.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf201.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf201.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithCustomerInfoAndCreatedFalseIf201.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithErrorIfCustomerInfoIsEmpty.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithErrorIfCustomerInfoIsEmpty.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginCallsCompletionWithErrorIfCustomerInfoIsEmpty.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.2.json new file mode 100644 index 0000000000..b83ed47ea3 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentCurrentUserID.2.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id 2", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.2.json new file mode 100644 index 0000000000..4b81d42c8d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginDoesntCacheForDifferentNewUserID.2.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id 2" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginMakesRightCalls.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginMakesRightCalls.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginMakesRightCalls.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginPassesNetworkErrorIfCouldntCommunicate.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginPassesNetworkErrorIfCouldntCommunicate.1.json new file mode 100644 index 0000000000..17fe164717 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginPassesNetworkErrorIfCouldntCommunicate.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithFailedVerification.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithFailedVerification.1.json new file mode 100644 index 0000000000..45945a8cbd --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithFailedVerification.1.json @@ -0,0 +1,36 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Post-Params-Hash" : "app_user_id,new_app_user_id:sha256:6fa58b9e3bdb1ca187ac082d128c19f04da8711fe6b17873a48bc7ca37bbf95a", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "$RCAnonymousID:6b2787de2fb848a8b403a45f695ee74f", + "new_app_user_id" : "F72BF276-CD70-4C27-BCD2-FC1EFD988FA3" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithVerifiedResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithVerifiedResponse.1.json new file mode 100644 index 0000000000..d1c5ab9866 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendLoginTests/mac-catalyst-26-testLoginWithVerifiedResponse.1.json @@ -0,0 +1,36 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Post-Params-Hash" : "app_user_id,new_app_user_id:sha256:ce001f7b6730af645a00622c062081d2105742d40101bb415176b88a18cfee97", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "old id", + "new_app_user_id" : "new id" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/identify" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMapping.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMapping.1.json new file mode 100644 index 0000000000..a4a28cdca4 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMapping.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/product_entitlement_mapping" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMappingCachesForSameUserID.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMappingCachesForSameUserID.1.json new file mode 100644 index 0000000000..a4a28cdca4 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendOfflineEntitlementsTests/mac-catalyst-26-testGetProductEntitlementMappingCachesForSameUserID.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/product_entitlement_mapping" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAdServicesTokenTests/mac-catalyst-26-testPostAdServicesCallsHttpClient.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAdServicesTokenTests/mac-catalyst-26-testPostAdServicesCallsHttpClient.1.json new file mode 100644 index 0000000000..4bd51e455a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAdServicesTokenTests/mac-catalyst-26-testPostAdServicesCallsHttpClient.1.json @@ -0,0 +1,32 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "aad_attribution_token" : "asdf" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/asdf/adservices_attribution" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAttributionDataTests/mac-catalyst-26-testPostAttributesPutsDataInDataKey.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAttributionDataTests/mac-catalyst-26-testPostAttributesPutsDataInDataKey.1.json new file mode 100644 index 0000000000..65ee702d0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostAttributionDataTests/mac-catalyst-26-testPostAttributesPutsDataInDataKey.1.json @@ -0,0 +1,36 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "data" : { + "a" : "b", + "c" : "d" + }, + "network" : 1 + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/user/attribution" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketSendsCorrectParameters.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketSendsCorrectParameters.1.json new file mode 100644 index 0000000000..3635b4846a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketSendsCorrectParameters.1.json @@ -0,0 +1,34 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "customer_email" : "test@example.com", + "issue_description" : "Test ticket description" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/customercenter/support/create-ticket" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketUsesCorrectHTTPMethod.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketUsesCorrectHTTPMethod.1.json new file mode 100644 index 0000000000..3635b4846a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketUsesCorrectHTTPMethod.1.json @@ -0,0 +1,34 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "customer_email" : "test@example.com", + "issue_description" : "Test ticket description" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/customercenter/support/create-ticket" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithFailedResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithFailedResponse.1.json new file mode 100644 index 0000000000..3635b4846a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithFailedResponse.1.json @@ -0,0 +1,34 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "customer_email" : "test@example.com", + "issue_description" : "Test ticket description" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/customercenter/support/create-ticket" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithNetworkError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithNetworkError.1.json new file mode 100644 index 0000000000..3635b4846a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithNetworkError.1.json @@ -0,0 +1,34 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "customer_email" : "test@example.com", + "issue_description" : "Test ticket description" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/customercenter/support/create-ticket" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithValidData.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithValidData.1.json new file mode 100644 index 0000000000..3635b4846a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostCreateTicketTests/mac-catalyst-26-testPostCreateTicketWithValidData.1.json @@ -0,0 +1,34 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "customer_email" : "test@example.com", + "issue_description" : "Test ticket description" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/customercenter/support/create-ticket" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithMultipleEvents.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithMultipleEvents.1.json new file mode 100644 index 0000000000..4dceb66442 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithMultipleEvents.1.json @@ -0,0 +1,53 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "entries" : [ + { + "app_session_id" : "FD06888D-DEA6-43C5-A36A-A1E06F2D6A42", + "id" : "8FDEAD13-A05B-4236-84CF-36BCDD36A7BC", + "name" : "customer_info_verification_result", + "properties" : { + "verification_result" : "FAILED" + }, + "timestamp" : "2023-09-06T19:42:08Z", + "version" : 1 + }, + { + "app_session_id" : "FD06888D-DEA6-43C5-A36A-A1E06F2D6A42", + "id" : "4FAF3FE9-F239-4CC1-BB07-C3320BA40BCF", + "name" : "customer_info_verification_result", + "properties" : { + "verification_result" : "FAILED" + }, + "timestamp" : "2023-09-06T17:45:21Z", + "version" : 1 + } + ] + }, + "method" : "POST", + "url" : "https://api-diagnostics.revenuecat.com/v1/diagnostics" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithOneEvent.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithOneEvent.1.json new file mode 100644 index 0000000000..7a6e5e045b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostDiagnosticsTests/mac-catalyst-26-testPostDiagnosticsEventsWithOneEvent.1.json @@ -0,0 +1,43 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "entries" : [ + { + "app_session_id" : "FD06888D-DEA6-43C5-A36A-A1E06F2D6A42", + "id" : "8FDEAD13-A05B-4236-84CF-36BCDD36A7BC", + "name" : "customer_info_verification_result", + "properties" : { + "verification_result" : "FAILED" + }, + "timestamp" : "2023-09-06T19:42:08Z", + "version" : 1 + } + ] + }, + "method" : "POST", + "url" : "https://api-diagnostics.revenuecat.com/v1/diagnostics" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningCorrectly.1.json new file mode 100644 index 0000000000..a8d0293f0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningCorrectly.1.json @@ -0,0 +1,40 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "fetch_token" : "YW4gYXdlc29tZSBkaXNjb3VudA==", + "generate_offers" : [ + { + "offer_id" : "offerid", + "product_id" : "a_great_product", + "subscription_group" : "sub_group" + } + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/offers" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningEmptyOffersResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningEmptyOffersResponse.1.json new file mode 100644 index 0000000000..a8d0293f0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningEmptyOffersResponse.1.json @@ -0,0 +1,40 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "fetch_token" : "YW4gYXdlc29tZSBkaXNjb3VudA==", + "generate_offers" : [ + { + "offer_id" : "offerid", + "product_id" : "a_great_product", + "subscription_group" : "sub_group" + } + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/offers" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNetworkError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNetworkError.1.json new file mode 100644 index 0000000000..a8d0293f0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNetworkError.1.json @@ -0,0 +1,40 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "fetch_token" : "YW4gYXdlc29tZSBkaXNjb3VudA==", + "generate_offers" : [ + { + "offer_id" : "offerid", + "product_id" : "a_great_product", + "subscription_group" : "sub_group" + } + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/offers" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNoDataAndNoSignatureErrorResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNoDataAndNoSignatureErrorResponse.1.json new file mode 100644 index 0000000000..a8d0293f0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningNoDataAndNoSignatureErrorResponse.1.json @@ -0,0 +1,40 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "fetch_token" : "YW4gYXdlc29tZSBkaXNjb3VudA==", + "generate_offers" : [ + { + "offer_id" : "offerid", + "product_id" : "a_great_product", + "subscription_group" : "sub_group" + } + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/offers" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningSignatureErrorResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningSignatureErrorResponse.1.json new file mode 100644 index 0000000000..a8d0293f0b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostOfferForSigningTests/mac-catalyst-26-testOfferForSigningSignatureErrorResponse.1.json @@ -0,0 +1,40 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "fetch_token" : "YW4gYXdlc29tZSBkaXNjb3VudA==", + "generate_offers" : [ + { + "offer_id" : "offerid", + "product_id" : "a_great_product", + "subscription_group" : "sub_group" + } + ] + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/offers" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testCachesRequestsForSameReceipt.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testCachesRequestsForSameReceipt.1.json new file mode 100644 index 0000000000..fe0ee8b91f --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testCachesRequestsForSameReceipt.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : true, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesNotPostConsentStatus.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesNotPostConsentStatus.1.json new file mode 100644 index 0000000000..e3f542beb1 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesNotPostConsentStatus.1.json @@ -0,0 +1,40 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Custom-Entitlements-Computation" : "true", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.1.json new file mode 100644 index 0000000000..8e2befb63b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.2.json new file mode 100644 index 0000000000..300f227ad3 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentCurrency.2.json @@ -0,0 +1,49 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "USD", + "fetch_token" : "YW4gYXdlc29tZWVyIHJlY2VpcHQ=", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.1.json new file mode 100644 index 0000000000..3487d5fe4d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.2.json new file mode 100644 index 0000000000..1b481aa53a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentDiscounts.2.json @@ -0,0 +1,56 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : false, + "offers" : [ + { + "offer_identifier" : "offerid", + "payment_mode" : 0, + "price" : "12" + } + ], + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.1.json new file mode 100644 index 0000000000..8c33c80757 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.1.json @@ -0,0 +1,46 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : false, + "payload_version" : 1, + "presented_offering_identifier" : "offering_a", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : true + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.2.json new file mode 100644 index 0000000000..ce3f0b8b5e --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOffering.2.json @@ -0,0 +1,46 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZWVyIHJlY2VpcHQ=", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : false, + "payload_version" : 1, + "presented_offering_identifier" : "offering_b", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : true + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.1.json new file mode 100644 index 0000000000..d113e12178 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.2.json new file mode 100644 index 0000000000..db94374b17 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentOfferings.2.json @@ -0,0 +1,46 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "presented_offering_identifier" : "offering_a", + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.1.json new file mode 100644 index 0000000000..b239702532 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.2.json new file mode 100644 index 0000000000..6ad9664792 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentReceipts.2.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZWVyIHJlY2VpcHQ=", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.1.json new file mode 100644 index 0000000000..b1eebd7d5a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.2.json new file mode 100644 index 0000000000..3487d5fe4d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testDoesntCacheForDifferentRestore.2.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testErrorIsForwardedForCustomerInfoCalls.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testErrorIsForwardedForCustomerInfoCalls.1.json new file mode 100644 index 0000000000..3487d5fe4d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testErrorIsForwardedForCustomerInfoCalls.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : true, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testFreeTrialPostsCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testFreeTrialPostsCorrectly.1.json new file mode 100644 index 0000000000..597f175c6c --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testFreeTrialPostsCorrectly.1.json @@ -0,0 +1,50 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "payment_mode" : 2, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithFailedVerification.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithFailedVerification.1.json new file mode 100644 index 0000000000..3fc49a766c --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithFailedVerification.1.json @@ -0,0 +1,48 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Post-Params-Hash" : "app_user_id,fetch_token,app_transaction:sha256:be95d3a1d4c00357de2696c1a4546be1d0312dbee67feee8a971f01f8ac4b729", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZWVyIHJlY2VpcHQ=", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithVerifiedResponse.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithVerifiedResponse.1.json new file mode 100644 index 0000000000..a272f250e9 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsEntitlementsWithVerifiedResponse.1.json @@ -0,0 +1,48 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Post-Params-Hash" : "app_user_id,fetch_token,app_transaction:sha256:2cc3741ddb808ae6fd179f1398d9115b58772590765edf799ec778f929faa46d", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.1.json new file mode 100644 index 0000000000..f6da27917b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.1.json @@ -0,0 +1,30 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/subscribers/user" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.2.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.2.json new file mode 100644 index 0000000000..d113e12178 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testGetsUpdatedSubscriberInfoAfterPost.2.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testIndividualParamsCanBeNil.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testIndividualParamsCanBeNil.1.json new file mode 100644 index 0000000000..fd75f33a65 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testIndividualParamsCanBeNil.1.json @@ -0,0 +1,49 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayAsYouGoPostsCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayAsYouGoPostsCorrectly.1.json new file mode 100644 index 0000000000..18e6316b46 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayAsYouGoPostsCorrectly.1.json @@ -0,0 +1,50 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "payment_mode" : 0, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayUpFrontPostsCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayUpFrontPostsCorrectly.1.json new file mode 100644 index 0000000000..9d9edc1437 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPayUpFrontPostsCorrectly.1.json @@ -0,0 +1,50 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "payment_mode" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptCreatesACustomerInfoObject.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptCreatesACustomerInfoObject.1.json new file mode 100644 index 0000000000..b1eebd7d5a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptCreatesACustomerInfoObject.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptForSubscriptionAndServerErrorComputesOfflineUser.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptForSubscriptionAndServerErrorComputesOfflineUser.1.json new file mode 100644 index 0000000000..6222221aa4 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptForSubscriptionAndServerErrorComputesOfflineUser.1.json @@ -0,0 +1,49 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptWithNoProductDataAndServerErrorComputesOfflineUser.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptWithNoProductDataAndServerErrorComputesOfflineUser.1.json new file mode 100644 index 0000000000..b1eebd7d5a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostingReceiptWithNoProductDataAndServerErrorComputesOfflineUser.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsJWSTokenWithProductDataCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsJWSTokenWithProductDataCorrectly.1.json new file mode 100644 index 0000000000..552b956a7a --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsJWSTokenWithProductDataCorrectly.1.json @@ -0,0 +1,49 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "USD", + "fetch_token" : "an awesomer jws token", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataCorrectly.1.json new file mode 100644 index 0000000000..d113e12178 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataCorrectly.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionAndNoReceiptCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionAndNoReceiptCorrectly.1.json new file mode 100644 index 0000000000..e31aa52e60 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionAndNoReceiptCorrectly.1.json @@ -0,0 +1,45 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_transaction" : "some_jws_token", + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "purchase_completed_by" : "my_app", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionCorrectly.1.json new file mode 100644 index 0000000000..85347a85a9 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithAppTransactionCorrectly.1.json @@ -0,0 +1,50 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_transaction" : "some_jws_token", + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "USD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithDiscountInfoCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithDiscountInfoCorrectly.1.json new file mode 100644 index 0000000000..3a422572b6 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithDiscountInfoCorrectly.1.json @@ -0,0 +1,57 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "BFD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "offers" : [ + { + "offer_identifier" : "offerid", + "payment_mode" : 0, + "price" : "12.1" + } + ], + "payload_version" : 1, + "price" : "15.99", + "product_id" : "a_great_product", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false, + "store_country" : "ESP", + "subscription_group_id" : "sub_group" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedOfferingContext.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedOfferingContext.1.json new file mode 100644 index 0000000000..1cc3014036 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedOfferingContext.1.json @@ -0,0 +1,56 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "applied_targeting_rule" : { + "revision" : 1, + "rule_id" : "abc123" + }, + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "BFD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "presented_offering_identifier" : "a_offering", + "presented_placement_identifier" : "a_placement", + "price" : "10.98", + "product_id" : "a_great_product", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : true, + "store_country" : "ESP", + "subscription_group_id" : "sub_group" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywall.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywall.1.json new file mode 100644 index 0000000000..c043db7e0d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywall.1.json @@ -0,0 +1,59 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "BFD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "paywall" : { + "dark_mode" : true, + "display_mode" : "full_screen", + "locale" : "en_US", + "paywall_id" : "test_paywall_id", + "revision" : 5, + "session_id" : "73616D70-6C65-2073-7472-696E67000000" + }, + "presented_offering_identifier" : "a_offering", + "price" : "10.98", + "product_id" : "a_great_product", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : true, + "store_country" : "ESP", + "subscription_group_id" : "sub_group" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywallAndSource.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywallAndSource.1.json new file mode 100644 index 0000000000..c17ffe2f86 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithPresentedPaywallAndSource.1.json @@ -0,0 +1,60 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "BFD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "paywall" : { + "dark_mode" : true, + "display_mode" : "full_screen", + "locale" : "en_US", + "paywall_id" : "test_paywall_id", + "revision" : 5, + "session_id" : "73616D70-6C65-2073-7472-696E67000000", + "source" : "customer_center" + }, + "presented_offering_identifier" : "a_offering", + "price" : "10.98", + "product_id" : "a_great_product", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : true, + "store_country" : "ESP", + "subscription_group_id" : "sub_group" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductDataCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductDataCorrectly.1.json new file mode 100644 index 0000000000..2f7307acd7 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductDataCorrectly.1.json @@ -0,0 +1,49 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "USD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductRequestDataCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductRequestDataCorrectly.1.json new file mode 100644 index 0000000000..04f7f25607 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithProductRequestDataCorrectly.1.json @@ -0,0 +1,51 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "BFD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "presented_offering_identifier" : "a_offering", + "price" : "10.98", + "product_id" : "a_great_product", + "purchase_completed_by" : "revenuecat", + "sdk_originated" : true, + "store_country" : "ESP", + "subscription_group_id" : "sub_group" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTestReceiptIdentifier.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTestReceiptIdentifier.1.json new file mode 100644 index 0000000000..657e742175 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTestReceiptIdentifier.1.json @@ -0,0 +1,50 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "UYU", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : false, + "store_country" : "ESP", + "test_receipt_identifier" : "12345678-1234-1234-1234-C2C35AE34D09" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTransactionIdCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTransactionIdCorrectly.1.json new file mode 100644 index 0000000000..f324e8af69 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsReceiptDataWithTransactionIdCorrectly.1.json @@ -0,0 +1,50 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "USD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : true, + "store_country" : "ESP", + "transaction_id" : "test_transaction_id_12345" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsSK2XcodeReceiptWithProductDataCorrectly.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsSK2XcodeReceiptWithProductDataCorrectly.1.json new file mode 100644 index 0000000000..0af5f0124d --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/mac-catalyst-26-testPostsSK2XcodeReceiptWithProductDataCorrectly.1.json @@ -0,0 +1,49 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "USD", + "fetch_token" : "ewogICJidW5kbGVfaWQiIDogIjEyM19idW5kbGVfaWQiLAogICJlbnZpcm9ubWVudCIgOiAieGNvZGUiLAogICJvcmlnaW5hbF9hcHBsaWNhdGlvbl92ZXJzaW9uIiA6ICIxMjNfb3JpZ2luYWxfYXBwbGljYXRpb25fdmVyc2lvbiIsCiAgIm9yaWdpbmFsX3B1cmNoYXNlX2RhdGUiIDogIjE5NzAtMDEtMDFUMDA6MDI6MDNaIiwKICAic3Vic2NyaXB0aW9uX3N0YXR1cyIgOiB7CiAgICAiMTIzX3N1YnNjcmlwdGlvbl9ncm91cF9pZCIgOiBbCiAgICAgIHsKICAgICAgICAicmVuZXdhbF9pbmZvIiA6ICIxMjNfcmVuZXdhbF9pbmZvX2p3c190b2tlbiIsCiAgICAgICAgInN0YXRlIiA6IDEsCiAgICAgICAgInRyYW5zYWN0aW9uIiA6ICIxMjNfdHJhbnNhY3Rpb25fandzX3Rva2VuIgogICAgICB9CiAgICBdCiAgfSwKICAidHJhbnNhY3Rpb25zIiA6IFsKICAgICIxMjNfdHJhbnNhY3Rpb25fandzX3Rva2VuIgogIF0KfQ==", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : true, + "payload_version" : 1, + "price" : "15.99", + "product_id" : "product_id", + "purchase_completed_by" : "my_app", + "sdk_originated" : false, + "store_country" : "ESP" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsCorrectCustomerInfo.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsCorrectCustomerInfo.1.json new file mode 100644 index 0000000000..1bc9f26931 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsCorrectCustomerInfo.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "test-user-id", + "redemption_token" : "test-redemption-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/redeem_purchase" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpectedInvalidTokenError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpectedInvalidTokenError.1.json new file mode 100644 index 0000000000..1bc9f26931 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpectedInvalidTokenError.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "test-user-id", + "redemption_token" : "test-redemption-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/redeem_purchase" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpiredTokenError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpiredTokenError.1.json new file mode 100644 index 0000000000..1bc9f26931 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsExpiredTokenError.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "test-user-id", + "redemption_token" : "test-redemption-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/redeem_purchase" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsPurchaseBelongsToOtherUserError.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsPurchaseBelongsToOtherUserError.1.json new file mode 100644 index 0000000000..1bc9f26931 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostRedeemWebPurchaseTests/mac-catalyst-26-testPostRedeemWebPurchaseReturnsPurchaseBelongsToOtherUserError.1.json @@ -0,0 +1,33 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "test-user-id", + "redemption_token" : "test-redemption-token" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/redeem_purchase" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestContainsSignatureHeader.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestContainsSignatureHeader.1.json new file mode 100644 index 0000000000..0a71d1216b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestContainsSignatureHeader.1.json @@ -0,0 +1,31 @@ +{ + "headers" : { + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/health" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestFailsIfSignatureVerificationFails.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestFailsIfSignatureVerificationFails.1.json new file mode 100644 index 0000000000..0a71d1216b --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendSignatureVerificationTests/mac-catalyst-26-testRequestFailsIfSignatureVerificationFails.1.json @@ -0,0 +1,31 @@ +{ + "headers" : { + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Headers-Hash" : "X-Is-Sandbox:sha256:fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Nonce" : "MTIzNDU2Nzg5MGFi", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : null, + "method" : "GET", + "url" : "https://api.revenuecat.com/v1/health" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Paywalls/Events/__Snapshots__/BackendPaywallEventTests/mac-catalyst-26-testPostPaywallEventsWithMultipleEvents.1.json b/Tests/UnitTests/Paywalls/Events/__Snapshots__/BackendPaywallEventTests/mac-catalyst-26-testPostPaywallEventsWithMultipleEvents.1.json new file mode 100644 index 0000000000..afc8909d34 --- /dev/null +++ b/Tests/UnitTests/Paywalls/Events/__Snapshots__/BackendPaywallEventTests/mac-catalyst-26-testPostPaywallEventsWithMultipleEvents.1.json @@ -0,0 +1,61 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "events" : [ + { + "app_user_id" : "user", + "dark_mode" : true, + "display_mode" : "full_screen", + "id" : "72164C05-2BDC-4807-8918-A4105F727DEB", + "locale" : "es_ES", + "offering_id" : "offering_1", + "paywall_id" : "test_paywall_id_1", + "paywall_revision" : 5, + "session_id" : "98CC0F1D-7665-4093-9624-1D7308FFF4DB", + "timestamp" : 1694029328000, + "type" : "paywall_impression", + "version" : 1 + }, + { + "app_user_id" : "user", + "dark_mode" : false, + "display_mode" : "full_screen", + "id" : "25B68D80-68D8-461C-8C68-1A8591190A88", + "locale" : "en_US", + "offering_id" : "offering_2", + "paywall_id" : "test_paywall_id_2", + "paywall_revision" : 3, + "session_id" : "10CC0F1D-7665-4093-9624-1D7308FFF4DB", + "timestamp" : 1694022321000, + "type" : "paywall_close", + "version" : 1 + } + ] + }, + "method" : "POST", + "url" : "https://api-paywalls.revenuecat.com/v1/events" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Paywalls/Events/__Snapshots__/BackendPaywallEventTests/mac-catalyst-26-testPostPaywallEventsWithOneEvent.1.json b/Tests/UnitTests/Paywalls/Events/__Snapshots__/BackendPaywallEventTests/mac-catalyst-26-testPostPaywallEventsWithOneEvent.1.json new file mode 100644 index 0000000000..81bc2f97e9 --- /dev/null +++ b/Tests/UnitTests/Paywalls/Events/__Snapshots__/BackendPaywallEventTests/mac-catalyst-26-testPostPaywallEventsWithOneEvent.1.json @@ -0,0 +1,47 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "events" : [ + { + "app_user_id" : "user", + "dark_mode" : true, + "display_mode" : "full_screen", + "id" : "72164C05-2BDC-4807-8918-A4105F727DEB", + "locale" : "es_ES", + "offering_id" : "offering_1", + "paywall_id" : "test_paywall_id_1", + "paywall_revision" : 5, + "session_id" : "98CC0F1D-7665-4093-9624-1D7308FFF4DB", + "timestamp" : 1694029328000, + "type" : "paywall_impression", + "version" : 1 + } + ] + }, + "method" : "POST", + "url" : "https://api-paywalls.revenuecat.com/v1/events" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/Paywalls/Events/__Snapshots__/BackendPaywallEventTests/mac-catalyst-26-testPostPaywallEventsWithPlacementAndTargeting.1.json b/Tests/UnitTests/Paywalls/Events/__Snapshots__/BackendPaywallEventTests/mac-catalyst-26-testPostPaywallEventsWithPlacementAndTargeting.1.json new file mode 100644 index 0000000000..6b785546c9 --- /dev/null +++ b/Tests/UnitTests/Paywalls/Events/__Snapshots__/BackendPaywallEventTests/mac-catalyst-26-testPostPaywallEventsWithPlacementAndTargeting.1.json @@ -0,0 +1,52 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_EN", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "events" : [ + { + "app_user_id" : "user", + "dark_mode" : true, + "display_mode" : "full_screen", + "id" : "72164C05-2BDC-4807-8918-A4105F727DEB", + "locale" : "es_ES", + "offering_id" : "offering_1", + "paywall_id" : "test_paywall_id_1", + "paywall_revision" : 5, + "presented_offering_context" : { + "placement_identifier" : "home_banner", + "targeting_revision" : 3, + "targeting_rule_id" : "rule_abc123" + }, + "session_id" : "98CC0F1D-7665-4093-9624-1D7308FFF4DB", + "timestamp" : 1694029328000, + "type" : "paywall_impression", + "version" : 1 + } + ] + }, + "method" : "POST", + "url" : "https://api-paywalls.revenuecat.com/v1/events" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithAdServicesToken.1.json b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithAdServicesToken.1.json new file mode 100644 index 0000000000..27c3a5caee --- /dev/null +++ b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithAdServicesToken.1.json @@ -0,0 +1,46 @@ +{ + "headers" : { + "Authorization" : "Bearer the api key", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "Unity", + "X-Platform-Flavor-Version" : "2.3.3", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_US", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "aad_attribution_token" : "token", + "app_user_id" : "abc123", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "restore", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesPassesCustomerInfoIfStatusCodeIsSuccess.1.json b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesPassesCustomerInfoIfStatusCodeIsSuccess.1.json new file mode 100644 index 0000000000..794388f1cd --- /dev/null +++ b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesPassesCustomerInfoIfStatusCodeIsSuccess.1.json @@ -0,0 +1,54 @@ +{ + "headers" : { + "Authorization" : "Bearer the api key", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "Unity", + "X-Platform-Flavor-Version" : "2.3.3", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_US", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "abc123", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + }, + "a key" : { + "updated_at_ms" : 1678307200000, + "value" : "a value" + }, + "another key" : { + "updated_at_ms" : 1678307200000, + "value" : "another value" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesPassesErrorIfStatusCodeIsNotSuccess.1.json b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesPassesErrorIfStatusCodeIsNotSuccess.1.json new file mode 100644 index 0000000000..09d01e40d1 --- /dev/null +++ b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesPassesErrorIfStatusCodeIsNotSuccess.1.json @@ -0,0 +1,54 @@ +{ + "headers" : { + "Authorization" : "Bearer the api key", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "Unity", + "X-Platform-Flavor-Version" : "2.3.3", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_US", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "abc123", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + }, + "a key" : { + "updated_at_ms" : 1678307200000, + "value" : "a value" + }, + "another key" : { + "updated_at_ms" : 1678307200000, + "value" : "another value" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "restore", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesReturnsBadJson.1.json b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesReturnsBadJson.1.json new file mode 100644 index 0000000000..794388f1cd --- /dev/null +++ b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesReturnsBadJson.1.json @@ -0,0 +1,54 @@ +{ + "headers" : { + "Authorization" : "Bearer the api key", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "Unity", + "X-Platform-Flavor-Version" : "2.3.3", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_US", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "abc123", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + }, + "a key" : { + "updated_at_ms" : 1678307200000, + "value" : "a value" + }, + "another key" : { + "updated_at_ms" : 1678307200000, + "value" : "another value" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "queue", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesSendsThemCorrectly.1.json b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesSendsThemCorrectly.1.json new file mode 100644 index 0000000000..09d01e40d1 --- /dev/null +++ b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithSubscriberAttributesSendsThemCorrectly.1.json @@ -0,0 +1,54 @@ +{ + "headers" : { + "Authorization" : "Bearer the api key", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "Unity", + "X-Platform-Flavor-Version" : "2.3.3", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_US", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "abc123", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + }, + "a key" : { + "updated_at_ms" : 1678307200000, + "value" : "a value" + }, + "another key" : { + "updated_at_ms" : 1678307200000, + "value" : "another value" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "restore", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithoutSubscriberAttributesSkipsThem.1.json b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithoutSubscriberAttributesSkipsThem.1.json new file mode 100644 index 0000000000..67c1641065 --- /dev/null +++ b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostReceiptWithoutSubscriberAttributesSkipsThem.1.json @@ -0,0 +1,46 @@ +{ + "headers" : { + "Authorization" : "Bearer the api key", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "Unity", + "X-Platform-Flavor-Version" : "2.3.3", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_US", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "app_user_id" : "abc123", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "payload_version" : 1, + "purchase_completed_by" : "revenuecat", + "sdk_originated" : false + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesCallsCompletionInNetworkErrorCase.1.json b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesCallsCompletionInNetworkErrorCase.1.json new file mode 100644 index 0000000000..cdc1a63cda --- /dev/null +++ b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesCallsCompletionInNetworkErrorCase.1.json @@ -0,0 +1,42 @@ +{ + "headers" : { + "Authorization" : "Bearer the api key", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "Unity", + "X-Platform-Flavor-Version" : "2.3.3", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_US", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "attributes" : { + "a key" : { + "updated_at_ms" : 1678307200000, + "value" : "a value" + }, + "another key" : { + "updated_at_ms" : 1678307200000, + "value" : "another value" + } + } + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/abc123/attributes" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesCallsCompletionInSuccessCase.1.json b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesCallsCompletionInSuccessCase.1.json new file mode 100644 index 0000000000..cdc1a63cda --- /dev/null +++ b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesCallsCompletionInSuccessCase.1.json @@ -0,0 +1,42 @@ +{ + "headers" : { + "Authorization" : "Bearer the api key", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "Unity", + "X-Platform-Flavor-Version" : "2.3.3", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_US", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "attributes" : { + "a key" : { + "updated_at_ms" : 1678307200000, + "value" : "a value" + }, + "another key" : { + "updated_at_ms" : 1678307200000, + "value" : "another value" + } + } + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/abc123/attributes" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesCallsCompletionWithErrorInBadRequestCase.1.json b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesCallsCompletionWithErrorInBadRequestCase.1.json new file mode 100644 index 0000000000..cdc1a63cda --- /dev/null +++ b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesCallsCompletionWithErrorInBadRequestCase.1.json @@ -0,0 +1,42 @@ +{ + "headers" : { + "Authorization" : "Bearer the api key", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "Unity", + "X-Platform-Flavor-Version" : "2.3.3", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_US", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "attributes" : { + "a key" : { + "updated_at_ms" : 1678307200000, + "value" : "a value" + }, + "another key" : { + "updated_at_ms" : 1678307200000, + "value" : "another value" + } + } + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/abc123/attributes" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesSendsAttributesErrorsIfAny.1.json b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesSendsAttributesErrorsIfAny.1.json new file mode 100644 index 0000000000..cdc1a63cda --- /dev/null +++ b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesSendsAttributesErrorsIfAny.1.json @@ -0,0 +1,42 @@ +{ + "headers" : { + "Authorization" : "Bearer the api key", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "Unity", + "X-Platform-Flavor-Version" : "2.3.3", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_US", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "attributes" : { + "a key" : { + "updated_at_ms" : 1678307200000, + "value" : "a value" + }, + "another key" : { + "updated_at_ms" : 1678307200000, + "value" : "another value" + } + } + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/abc123/attributes" + } +} \ No newline at end of file diff --git a/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesSendsRightParameters.1.json b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesSendsRightParameters.1.json new file mode 100644 index 0000000000..cdc1a63cda --- /dev/null +++ b/Tests/UnitTests/SubscriberAttributes/__Snapshots__/BackendSubscriberAttributesTests/mac-catalyst-26-testPostSubscriberAttributesSendsRightParameters.1.json @@ -0,0 +1,42 @@ +{ + "headers" : { + "Authorization" : "Bearer the api key", + "X-Apple-Device-Identifier" : "5D7C0074-07E4-4564-AAA4-4008D0640881", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Installation-Method" : "unknown", + "X-Is-Backgrounded" : "false", + "X-Is-Debug-Build" : "true", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Device" : "arm64", + "X-Platform-Flavor" : "Unity", + "X-Platform-Flavor-Version" : "2.3.3", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Preferred-Locales" : "en_US", + "X-Retry-Count" : "0", + "X-StoreKit-Version" : "2", + "X-StoreKit2-Enabled" : "true", + "X-Storefront" : "USA", + "X-Version" : "4.0.0", + "content-type" : "application/json" + }, + "request" : { + "body" : { + "attributes" : { + "a key" : { + "updated_at_ms" : 1678307200000, + "value" : "a value" + }, + "another key" : { + "updated_at_ms" : 1678307200000, + "value" : "another value" + } + } + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/subscribers/abc123/attributes" + } +} \ No newline at end of file From 893d78c6f91c1c4af8703a2728b719c067ab4afb Mon Sep 17 00:00:00 2001 From: Antonio Pallares Date: Wed, 3 Jun 2026 15:21:24 +0200 Subject: [PATCH 08/10] ci: rename run-test-mac-catalyst job to run-test-mac-catalyst-xcode-26 Co-authored-by: Cursor --- .circleci/default_config.yml | 12 ++++++------ .circleci/generate-requested-jobs-config.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.circleci/default_config.yml b/.circleci/default_config.yml index 27bc3569c8..aa3d447191 100644 --- a/.circleci/default_config.yml +++ b/.circleci/default_config.yml @@ -1003,7 +1003,7 @@ jobs: # The same bug does not appear to reproduce on Mac Catalyst, so this job runs the # full iOS test plan (including StoreKit tests) on the Mac Catalyst variant with # Xcode 26.5 to confirm this on CI. - run-test-mac-catalyst: + run-test-mac-catalyst-xcode-26: executor: name: macos-executor xcode_version: "26.5" @@ -2190,7 +2190,7 @@ workflows: - run-test-ios-15-and-14 - run-test-tvos-and-macos - run-test-watchos - - run-test-mac-catalyst + - run-test-mac-catalyst-xcode-26 - backend-integration-tests-SK2 # Snapshots from this job are shared with all BackendIntegrationTests @@ -2251,7 +2251,7 @@ workflows: - build-xcode-265: context: - slack-secrets - - run-test-mac-catalyst: + - run-test-mac-catalyst-xcode-26: context: - slack-secrets - pod-lib-lint: @@ -2418,7 +2418,7 @@ workflows: - check-api-changes-revenuecatui - run-test-ios-26 - build-xcode-265 - - run-test-mac-catalyst + - run-test-mac-catalyst-xcode-26 - pod-lib-lint - run-revenuecat-ui-ios-26 - emerge_purchases_ui_snapshot_tests @@ -2720,7 +2720,7 @@ workflows: - build-xcode-265: context: - slack-secrets - - run-test-mac-catalyst: + - run-test-mac-catalyst-xcode-26: context: - slack-secrets - pod-lib-lint: @@ -2744,7 +2744,7 @@ workflows: - lint - run-test-ios-26 - build-xcode-265 - - run-test-mac-catalyst + - run-test-mac-catalyst-xcode-26 - pod-lib-lint - run-revenuecat-ui-ios-26 - emerge_purchases_ui_snapshot_tests diff --git a/.circleci/generate-requested-jobs-config.js b/.circleci/generate-requested-jobs-config.js index 2c598d3061..f77b49f9d1 100644 --- a/.circleci/generate-requested-jobs-config.js +++ b/.circleci/generate-requested-jobs-config.js @@ -38,7 +38,7 @@ const JOBS = { "run-test-ios-16": ["slack-secrets"], "run-test-ios-18-and-17": ["slack-secrets"], "run-test-ios-26": ["slack-secrets"], - "run-test-mac-catalyst": ["slack-secrets"], + "run-test-mac-catalyst-xcode-26": ["slack-secrets"], "run-test-tvos-and-macos": ["slack-secrets"], "run-test-watchos": ["slack-secrets"], "spm-receipt-parser": ["slack-secrets"], From 883a2fb25b83b5724ae8fd5f0f07d7f173887180 Mon Sep 17 00:00:00 2001 From: Antonio Pallares Date: Wed, 3 Jun 2026 15:24:54 +0200 Subject: [PATCH 09/10] style: wrap long XCTSkip message to satisfy line_length Co-authored-by: Cursor --- Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift b/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift index 3243fe756b..40cfa5ecb1 100644 --- a/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift +++ b/Tests/StoreKitUnitTests/PurchasesOrchestratorSK2Tests.swift @@ -534,7 +534,8 @@ class PurchasesOrchestratorSK2Tests: BasePurchasesOrchestratorTests, PurchasesOr // This test relies on that fault-injection API, so it's skipped on Catalyst. The method is kept // defined to satisfy the `PurchasesOrchestratorTests` protocol conformance. #if targetEnvironment(macCatalyst) - throw XCTSkip("SKTestSession.setSimulatedError(_:forAPI:) is unavailable when compiling for Mac Catalyst (Apple bug FB22922982)") + throw XCTSkip("SKTestSession.setSimulatedError(_:forAPI:) is unavailable when compiling for Mac Catalyst " + + "(Apple bug FB22922982)") #else try AvailabilityChecks.iOS17APIAvailableOrSkipTest() #if compiler(>=5.9) From 37c1a8a1eead566a6e0361b2d9b97f96130a6d5d Mon Sep 17 00:00:00 2001 From: Antonio Pallares Date: Wed, 3 Jun 2026 20:02:02 +0200 Subject: [PATCH 10/10] test: align platform guards with Mac Catalyst behavior These tests ran for the first time on Mac Catalyst and asserted iOS- or macOS-native behavior that doesn't hold there: - PurchasesDiagnosticsTrackingTests: exclude Catalyst, where presentCodeRedemptionSheet() is unavailable (would crash with an unrecognized selector). - SandboxEnvironmentDetectorTests: route Catalyst to the macOS branch, since it detects sandbox via the receipt environment, not the URL path. - LocalReceiptParserStoreKitTests: treat Catalyst like macOS for the receipt applicationVersion. - HTTPClientTests: group Catalyst with iOS for identifierForVendor, which uses UIDevice (always present) there rather than the macOS sandbox gate. Co-authored-by: Cursor --- .../StoreKitUnitTests/LocalReceiptParserStoreKitTests.swift | 2 +- Tests/UnitTests/Misc/SandboxEnvironmentDetectorTests.swift | 6 ++++-- Tests/UnitTests/Networking/HTTPClientTests.swift | 5 ++++- .../Purchases/PurchasesDiagnosticsTrackingTests.swift | 5 ++++- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Tests/StoreKitUnitTests/LocalReceiptParserStoreKitTests.swift b/Tests/StoreKitUnitTests/LocalReceiptParserStoreKitTests.swift index 3316b638e4..03ff2dc282 100644 --- a/Tests/StoreKitUnitTests/LocalReceiptParserStoreKitTests.swift +++ b/Tests/StoreKitUnitTests/LocalReceiptParserStoreKitTests.swift @@ -49,7 +49,7 @@ class LocalReceiptParserStoreKitTests: StoreKitConfigTestCase { let receipt = try self.parser.parse(from: data) expect(receipt.bundleId) == "com.revenuecat.StoreKitUnitTestsHostApp" - #if os(macOS) + #if os(macOS) || targetEnvironment(macCatalyst) expect(receipt.applicationVersion) == SystemInfo.frameworkVersion.replacingOccurrences( of: "-SNAPSHOT", with: "" diff --git a/Tests/UnitTests/Misc/SandboxEnvironmentDetectorTests.swift b/Tests/UnitTests/Misc/SandboxEnvironmentDetectorTests.swift index 3934e82307..9cc33c1c26 100644 --- a/Tests/UnitTests/Misc/SandboxEnvironmentDetectorTests.swift +++ b/Tests/UnitTests/Misc/SandboxEnvironmentDetectorTests.swift @@ -16,7 +16,9 @@ import XCTest @testable import RevenueCat -#if !os(macOS) +// Mac Catalyst detects sandbox the same way as macOS (via the receipt environment, not the +// receipt URL path), so it uses the macOS test branch below. +#if !os(macOS) && !targetEnvironment(macCatalyst) class SandboxEnvironmentDetectorTests: TestCase { @@ -42,7 +44,7 @@ class SandboxEnvironmentDetectorTests: TestCase { #else -// `macOS` sandbox detection does not rely on receipt path +// `macOS` and Mac Catalyst sandbox detection does not rely on receipt path class SandboxEnvironmentDetectorTests: TestCase { func testIsNotSandboxIfReceiptIsProduction() throws { diff --git a/Tests/UnitTests/Networking/HTTPClientTests.swift b/Tests/UnitTests/Networking/HTTPClientTests.swift index 9e635c6aa3..2c284951ab 100644 --- a/Tests/UnitTests/Networking/HTTPClientTests.swift +++ b/Tests/UnitTests/Networking/HTTPClientTests.swift @@ -1417,7 +1417,10 @@ final class HTTPClientTests: BaseHTTPClientTests