Skip to content

Commit

Permalink
Make web redemption APIs stable (#4591)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonidero authored Dec 16, 2024
1 parent e13379a commit 38fa636
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions RevenueCatUI/View+OnRedeemWebPurchaseAttempt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ extension View {
/// ```
/// - Note: If the SDK is not configured when the URL is received, the URL will be ignored
/// - Note: If you need to control better when to perform the redemption, see our docs for examples.
///
/// Warning: This is currently experimental and subject to change.
public func onWebPurchaseRedemptionAttempt(
perform completion: @escaping @Sendable (WebPurchaseRedemptionResult) -> Void
) -> some View {
Expand Down
2 changes: 0 additions & 2 deletions Sources/Purchasing/Purchases/Purchases.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,6 @@ public extension Purchases {
}
}

/// Warning: This is currently experimental and subject to change.
func redeemWebPurchase(
webPurchaseRedemption: WebPurchaseRedemption,
completion: @escaping (CustomerInfo?, PublicError?) -> Void
Expand All @@ -1251,7 +1250,6 @@ public extension Purchases {
completion: completion)
}

/// Warning: This is currently experimental and subject to change.
func redeemWebPurchase(_ webPurchaseRedemption: WebPurchaseRedemption) async -> WebPurchaseRedemptionResult {
return await self.purchasesOrchestrator.redeemWebPurchase(webPurchaseRedemption)
}
Expand Down
2 changes: 0 additions & 2 deletions Sources/WebPurchaseRedemption/URL+WebPurchaseRedemption.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ extension URL {
/// Parses a URL and converts it to a ``WebPurchaseRedemption`` if possible that can be
/// redeemed using ``Purchases/redeemWebPurchase(_:)`
///
/// Warning: This is currently experimental and subject to change.
///
/// - Seealso: ``Purchases/redeemWebPurchase(_:)``
public var asWebPurchaseRedemption: WebPurchaseRedemption? {
return Purchases.parseAsWebPurchaseRedemption(self)
Expand Down
1 change: 0 additions & 1 deletion Sources/WebPurchaseRedemption/WebPurchaseRedemption.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import Foundation

/// Class representing a web redemption deep link that can be redeemed by the SDK.
/// Warning: This is currently experimental and subject to change.
///
/// - Seealso: ``Purchases/redeemWebPurchase(_:)``
@objc(RCWebPurchaseRedemption) public final class WebPurchaseRedemption: NSObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import Foundation

/// Represents the result of a web purchase redemption
/// Warning: This is currently experimental and subject to change.
///
/// - Seealso: ``Purchases/redeemWebPurchase(_:)``
public enum WebPurchaseRedemptionResult: Sendable {
Expand Down

0 comments on commit 38fa636

Please sign in to comment.