-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ObjC showStoreMessages API (#3269)
### Description This removes the extra APIs that were added to support showing store messages in ObjC. We will add these in PHC. If there is a demand for it we can always add it later. --------- Co-authored-by: NachoSoto <NachoSoto@users.noreply.github.com>
- Loading branch information
Showing
11 changed files
with
55 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// Copyright RevenueCat Inc. All Rights Reserved. | ||
// | ||
// Licensed under the MIT License (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://opensource.org/licenses/MIT | ||
// | ||
// StoreMessageTypeTests.swift | ||
// | ||
// Created by Antonio Rico Diez on 3/10/23. | ||
|
||
import Foundation | ||
import Nimble | ||
import StoreKit | ||
|
||
@testable import RevenueCat | ||
|
||
#if os(iOS) || targetEnvironment(macCatalyst) || VISION_OS | ||
|
||
@available(iOS 16.0, *) | ||
class StoreMessagesTypeTests: TestCase { | ||
|
||
override func setUpWithError() throws { | ||
try super.setUpWithError() | ||
|
||
try AvailabilityChecks.iOS16APIAvailableOrSkipTest() | ||
} | ||
|
||
func testMessageReasonIsMappedToCorrectStoreMessageType() async throws { | ||
#if swift(>=5.8) | ||
if #available(iOS 16.4, *) { | ||
expect(Message.Reason.billingIssue.messageType) == .billingIssue | ||
} | ||
#endif | ||
expect(Message.Reason.priceIncreaseConsent.messageType) == .priceIncreaseConsent | ||
expect(Message.Reason.generic.messageType) == .generic | ||
} | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters