Skip to content

Commit

Permalink
[AUTOMATIC] Release/4.22.0 (#2637)
Browse files Browse the repository at this point in the history
**This is an automatic release.**

### New Features
* New `DebugViewController`: UIKit counterpart for SwiftUI's
`debugRevenueCatOverlay` (#2631) via NachoSoto (@NachoSoto)
* Created `PaywallExtensions`: `StoreView` and `SubscriptionStoreView`
overloads for `Offering` (#2593) via NachoSoto (@NachoSoto)
* Introduced `debugRevenueCatOverlay()`: new SwiftUI debug overlay
(#2567) via NachoSoto (@NachoSoto)
### Bugfixes
* Removed `preventPurchasePopupCallFromTriggeringCacheRefresh`, update
caches on `willEnterForeground` (#2623) via NachoSoto (@NachoSoto)
* Fixed `Catalyst` build with `Xcode 15 beta 1` (#2586) via NachoSoto
(@NachoSoto)
### Dependency Updates
* Bump danger from 9.3.0 to 9.3.1 (#2592) via dependabot[bot]
(@dependabot[bot])
### Other Changes
* `StoreTransaction`: added new `Storefront` to API testers (#2634) via
NachoSoto (@NachoSoto)
* `DebugView`: added snapshot tests (#2630) via NachoSoto (@NachoSoto)
* `verifyNoUnfinishedTransactions`/`verifyUnfinishedTransaction`: added
missing `#file` parameter (#2625) via NachoSoto (@NachoSoto)
* `PostReceiptDataOperation`: clean up cache key (#2628) via NachoSoto
(@NachoSoto)
* `PurchasesOrchestrator`: also get `Storefront` from SK1 (#2629) via
NachoSoto (@NachoSoto)
* `CI`: disable iOS 17 for now (#2627) via NachoSoto (@NachoSoto)
* `Tests`: fixed crash on iOS 13 (#2624) via NachoSoto (@NachoSoto)
* `StoreTransaction`: read `Storefront` from `StoreKit.Transaction`
(#2611) via NachoSoto (@NachoSoto)
* `StoreKitConfigTestCase`/`BaseStoreKitIntegrationTests`: also clear
transactions after every test (#2616) via NachoSoto (@NachoSoto)
* `ErrorCode.networkError`: improved description (#2610) via NachoSoto
(@NachoSoto)
* `PurchaseTester`: make CI job always point to current version (#2622)
via NachoSoto (@NachoSoto)
* Improved `finishAllUnfinishedTransactions` (#2615) via NachoSoto
(@NachoSoto)
* `StoreKitConfigTestCase`: improved `waitForStoreKitTestIfNeeded`
(#2614) via NachoSoto (@NachoSoto)
* `StoreKitConfigTestCase`: set `continueAfterFailure` to `false`
(#2617) via NachoSoto (@NachoSoto)
* `PaywallExtensions`: fixed compilation (#2613) via NachoSoto
(@NachoSoto)
* `CI`: added `iOS 17` job (#2591) via NachoSoto (@NachoSoto)
* `Encodable.jsonEncodedData`: fixed tests on iOS 17 due to inconsistent
key ordering (#2607) via NachoSoto (@NachoSoto)
* `debugRevenueCatOverlay`: added ability to display new
`SubscriptionStoreView` (#2595) via NachoSoto (@NachoSoto)
* Refactor: extracted all log strings (#2600) via NachoSoto (@NachoSoto)
* Changed tests to work around `URL` decoding differences in `iOS 17`
(#2605) via NachoSoto (@NachoSoto)
* Removed unnecessary `Strings.trimmedOrError` (#2601) via NachoSoto
(@NachoSoto)
* Fixed test compilation with `Xcode 15` (#2602) via NachoSoto
(@NachoSoto)
* Tests: added `iOS 17` snapshots (#2603) via NachoSoto (@NachoSoto)
* `StoreProductDiscount`: added `description` (#2604) via NachoSoto
(@NachoSoto)
* `debugRevenueCatOverlay` improvements (#2594) via NachoSoto
(@NachoSoto)
* `Xcode 15`: fixed all documentation warnings (#2596) via NachoSoto
(@NachoSoto)
* `StoreKitObserverModeIntegrationTests`: fixed and disabled SK2
`testPurchaseInDevicePostsReceipt` (#2589) via NachoSoto (@NachoSoto)
* `StoreKit2TransactionListener`: added log when receiving
`Transactions.Updates` (#2588) via NachoSoto (@NachoSoto)
* `Dictionary.MergeStrategy`: simplify implementation (#2587) via
NachoSoto (@NachoSoto)
* `Configuration.Builder`: fixed doc reference (#2583) via NachoSoto
(@NachoSoto)
* `APITesters`: available since iOS 11 (#2581) via NachoSoto
(@NachoSoto)
  • Loading branch information
RCGitBot authored Jun 13, 2023
1 parent 6d53255 commit aafdba1
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ clean: true
author: RevenueCat
author_url: https://revenuecat.com
sdk: iphonesimulator
module_version: 4.22.0-SNAPSHOT
module_version: 4.22.0
github_url: https://github.com/revenuecat/purchases-ios
github_file_prefix: https://github.com/revenuecat/purchases-ios/tree/4.18.0-SNAPSHOT
output: generated_docs
Expand Down
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.22.0-SNAPSHOT
4.22.0
49 changes: 39 additions & 10 deletions CHANGELOG.latest.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,41 @@
_This release is compatible with Xcode 15 beta 1_

### New Features
* New `DebugViewController`: UIKit counterpart for SwiftUI's `debugRevenueCatOverlay` (#2631) via NachoSoto (@NachoSoto)
* Created `PaywallExtensions`: `StoreView` and `SubscriptionStoreView` overloads for `Offering` (#2593) via NachoSoto (@NachoSoto)
* Introduced `debugRevenueCatOverlay()`: new SwiftUI debug overlay (#2567) via NachoSoto (@NachoSoto)
### Bugfixes
* `Dictionary.MergeStrategy`: fixed Xcode 15 compilation (#2582) via NachoSoto (@NachoSoto)
* Removed `preventPurchasePopupCallFromTriggeringCacheRefresh`, update caches on `willEnterForeground` (#2623) via NachoSoto (@NachoSoto)
* Fixed `Catalyst` build with `Xcode 15 beta 1` (#2586) via NachoSoto (@NachoSoto)
### Dependency Updates
* Bump danger from 9.3.0 to 9.3.1 (#2592) via dependabot[bot] (@dependabot[bot])
### Other Changes
* `Custom Entitlements Computation`: added missing scheme to project (#2579) via NachoSoto (@NachoSoto)
* `Custom Entitlements Computation`: added Integration Tests (#2568) via NachoSoto (@NachoSoto)
* `ProductsManager`: improved display of underlying errors (#2575) via NachoSoto (@NachoSoto)
* `StoreKit1Wrapper`: added debug log for duplicate `finishTransaction` calls (#2577) via NachoSoto (@NachoSoto)
* Fixed typo in file name (#2578) via NachoSoto (@NachoSoto)
* `Integration Tests`: avoid crashes when printing receipt (#2570) via NachoSoto (@NachoSoto)
* `Package.swift` fix warning for unrecognized `Info.plist` (#2573) via NachoSoto (@NachoSoto)
* `StoreTransaction`: added new `Storefront` to API testers (#2634) via NachoSoto (@NachoSoto)
* `DebugView`: added snapshot tests (#2630) via NachoSoto (@NachoSoto)
* `verifyNoUnfinishedTransactions`/`verifyUnfinishedTransaction`: added missing `#file` parameter (#2625) via NachoSoto (@NachoSoto)
* `PostReceiptDataOperation`: clean up cache key (#2628) via NachoSoto (@NachoSoto)
* `PurchasesOrchestrator`: also get `Storefront` from SK1 (#2629) via NachoSoto (@NachoSoto)
* `CI`: disable iOS 17 for now (#2627) via NachoSoto (@NachoSoto)
* `Tests`: fixed crash on iOS 13 (#2624) via NachoSoto (@NachoSoto)
* `StoreTransaction`: read `Storefront` from `StoreKit.Transaction` (#2611) via NachoSoto (@NachoSoto)
* `StoreKitConfigTestCase`/`BaseStoreKitIntegrationTests`: also clear transactions after every test (#2616) via NachoSoto (@NachoSoto)
* `ErrorCode.networkError`: improved description (#2610) via NachoSoto (@NachoSoto)
* `PurchaseTester`: make CI job always point to current version (#2622) via NachoSoto (@NachoSoto)
* Improved `finishAllUnfinishedTransactions` (#2615) via NachoSoto (@NachoSoto)
* `StoreKitConfigTestCase`: improved `waitForStoreKitTestIfNeeded` (#2614) via NachoSoto (@NachoSoto)
* `StoreKitConfigTestCase`: set `continueAfterFailure` to `false` (#2617) via NachoSoto (@NachoSoto)
* `PaywallExtensions`: fixed compilation (#2613) via NachoSoto (@NachoSoto)
* `CI`: added `iOS 17` job (#2591) via NachoSoto (@NachoSoto)
* `Encodable.jsonEncodedData`: fixed tests on iOS 17 due to inconsistent key ordering (#2607) via NachoSoto (@NachoSoto)
* `debugRevenueCatOverlay`: added ability to display new `SubscriptionStoreView` (#2595) via NachoSoto (@NachoSoto)
* Refactor: extracted all log strings (#2600) via NachoSoto (@NachoSoto)
* Changed tests to work around `URL` decoding differences in `iOS 17` (#2605) via NachoSoto (@NachoSoto)
* Removed unnecessary `Strings.trimmedOrError` (#2601) via NachoSoto (@NachoSoto)
* Fixed test compilation with `Xcode 15` (#2602) via NachoSoto (@NachoSoto)
* Tests: added `iOS 17` snapshots (#2603) via NachoSoto (@NachoSoto)
* `StoreProductDiscount`: added `description` (#2604) via NachoSoto (@NachoSoto)
* `debugRevenueCatOverlay` improvements (#2594) via NachoSoto (@NachoSoto)
* `Xcode 15`: fixed all documentation warnings (#2596) via NachoSoto (@NachoSoto)
* `StoreKitObserverModeIntegrationTests`: fixed and disabled SK2 `testPurchaseInDevicePostsReceipt` (#2589) via NachoSoto (@NachoSoto)
* `StoreKit2TransactionListener`: added log when receiving `Transactions.Updates` (#2588) via NachoSoto (@NachoSoto)
* `Dictionary.MergeStrategy`: simplify implementation (#2587) via NachoSoto (@NachoSoto)
* `Configuration.Builder`: fixed doc reference (#2583) via NachoSoto (@NachoSoto)
* `APITesters`: available since iOS 11 (#2581) via NachoSoto (@NachoSoto)
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
## 4.22.0
### New Features
* New `DebugViewController`: UIKit counterpart for SwiftUI's `debugRevenueCatOverlay` (#2631) via NachoSoto (@NachoSoto)
* Created `PaywallExtensions`: `StoreView` and `SubscriptionStoreView` overloads for `Offering` (#2593) via NachoSoto (@NachoSoto)
* Introduced `debugRevenueCatOverlay()`: new SwiftUI debug overlay (#2567) via NachoSoto (@NachoSoto)
### Bugfixes
* Removed `preventPurchasePopupCallFromTriggeringCacheRefresh`, update caches on `willEnterForeground` (#2623) via NachoSoto (@NachoSoto)
* Fixed `Catalyst` build with `Xcode 15 beta 1` (#2586) via NachoSoto (@NachoSoto)
### Dependency Updates
* Bump danger from 9.3.0 to 9.3.1 (#2592) via dependabot[bot] (@dependabot[bot])
### Other Changes
* `StoreTransaction`: added new `Storefront` to API testers (#2634) via NachoSoto (@NachoSoto)
* `DebugView`: added snapshot tests (#2630) via NachoSoto (@NachoSoto)
* `verifyNoUnfinishedTransactions`/`verifyUnfinishedTransaction`: added missing `#file` parameter (#2625) via NachoSoto (@NachoSoto)
* `PostReceiptDataOperation`: clean up cache key (#2628) via NachoSoto (@NachoSoto)
* `PurchasesOrchestrator`: also get `Storefront` from SK1 (#2629) via NachoSoto (@NachoSoto)
* `CI`: disable iOS 17 for now (#2627) via NachoSoto (@NachoSoto)
* `Tests`: fixed crash on iOS 13 (#2624) via NachoSoto (@NachoSoto)
* `StoreTransaction`: read `Storefront` from `StoreKit.Transaction` (#2611) via NachoSoto (@NachoSoto)
* `StoreKitConfigTestCase`/`BaseStoreKitIntegrationTests`: also clear transactions after every test (#2616) via NachoSoto (@NachoSoto)
* `ErrorCode.networkError`: improved description (#2610) via NachoSoto (@NachoSoto)
* `PurchaseTester`: make CI job always point to current version (#2622) via NachoSoto (@NachoSoto)
* Improved `finishAllUnfinishedTransactions` (#2615) via NachoSoto (@NachoSoto)
* `StoreKitConfigTestCase`: improved `waitForStoreKitTestIfNeeded` (#2614) via NachoSoto (@NachoSoto)
* `StoreKitConfigTestCase`: set `continueAfterFailure` to `false` (#2617) via NachoSoto (@NachoSoto)
* `PaywallExtensions`: fixed compilation (#2613) via NachoSoto (@NachoSoto)
* `CI`: added `iOS 17` job (#2591) via NachoSoto (@NachoSoto)
* `Encodable.jsonEncodedData`: fixed tests on iOS 17 due to inconsistent key ordering (#2607) via NachoSoto (@NachoSoto)
* `debugRevenueCatOverlay`: added ability to display new `SubscriptionStoreView` (#2595) via NachoSoto (@NachoSoto)
* Refactor: extracted all log strings (#2600) via NachoSoto (@NachoSoto)
* Changed tests to work around `URL` decoding differences in `iOS 17` (#2605) via NachoSoto (@NachoSoto)
* Removed unnecessary `Strings.trimmedOrError` (#2601) via NachoSoto (@NachoSoto)
* Fixed test compilation with `Xcode 15` (#2602) via NachoSoto (@NachoSoto)
* Tests: added `iOS 17` snapshots (#2603) via NachoSoto (@NachoSoto)
* `StoreProductDiscount`: added `description` (#2604) via NachoSoto (@NachoSoto)
* `debugRevenueCatOverlay` improvements (#2594) via NachoSoto (@NachoSoto)
* `Xcode 15`: fixed all documentation warnings (#2596) via NachoSoto (@NachoSoto)
* `StoreKitObserverModeIntegrationTests`: fixed and disabled SK2 `testPurchaseInDevicePostsReceipt` (#2589) via NachoSoto (@NachoSoto)
* `StoreKit2TransactionListener`: added log when receiving `Transactions.Updates` (#2588) via NachoSoto (@NachoSoto)
* `Dictionary.MergeStrategy`: simplify implementation (#2587) via NachoSoto (@NachoSoto)
* `Configuration.Builder`: fixed doc reference (#2583) via NachoSoto (@NachoSoto)
* `APITesters`: available since iOS 11 (#2581) via NachoSoto (@NachoSoto)

## 4.21.1
_This release is compatible with Xcode 15 beta 1_

Expand Down
2 changes: 1 addition & 1 deletion RevenueCat.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RevenueCat"
s.version = "4.22.0-SNAPSHOT"
s.version = "4.22.0"
s.summary = "Subscription and in-app-purchase backend service."

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion Sources/Misc/SystemInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class SystemInfo {
}

static var frameworkVersion: String {
return "4.22.0-SNAPSHOT"
return "4.22.0"
}

static var systemVersion: String {
Expand Down
43 changes: 23 additions & 20 deletions Tests/InstallationTests/CommonFiles/RevenueCat-Swift.h
Original file line number Diff line number Diff line change
Expand Up @@ -665,13 +665,13 @@ SWIFT_CLASS("_TtC10RevenueCat25CacheableNetworkOperation")
/// <em>Steps:</em>
/// <ol>
/// <li>
/// Call <code>Configuration/builder(withAPIKey:)</code> To obtain a <code>Builder</code> object.
/// Call <code>Configuration/builder(withAPIKey:)</code> To obtain a <code>Configuration/Builder</code> object.
/// </li>
/// <li>
/// Set this builder’s properties using the “<code>with(</code>” functions.
/// </li>
/// <li>
/// Call <code>Builder/build()</code> to obtain the <code>Configuration</code> object.
/// Call <code>Configuration/Builder/build()</code> to obtain the <code>Configuration</code> object.
/// </li>
/// <li>
/// Pass the <code>Configuration</code> object into <code>Purchases/configure(with:)-6oipy</code>.
Expand Down Expand Up @@ -1554,7 +1554,7 @@ SWIFT_CLASS_NAMED("PromotionalOffer")
@interface RCPromotionalOffer : NSObject
/// The <code>StoreProductDiscount</code> in this offer.
@property (nonatomic, readonly, strong) RCStoreProductDiscount * _Nonnull discount;
/// The <code>SignedData-swift.class</code> provides information about the <code>PromotionalOffer</code>’s signature.
/// The <code>PromotionalOffer/SignedData-swift.class</code> provides information about the <code>PromotionalOffer</code>’s signature.
@property (nonatomic, readonly, strong) RCPromotionalOfferSignedData * _Nonnull signedData;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
Expand Down Expand Up @@ -1648,10 +1648,10 @@ SWIFT_PROTOCOL_NAMED("PurchasesType")
/// <a href="https://docs.revenuecat.com/docs/user-ids">Identifying Users</a>
/// </li>
/// <li>
/// <code>logOut(completion:)</code>
/// <code>Purchases/logOut(completion:)</code>
/// </li>
/// <li>
/// <code>isAnonymous</code>
/// <code>Purchases/isAnonymous</code>
/// </li>
/// <li>
/// <code>Purchases/appUserID</code>
Expand All @@ -1675,10 +1675,10 @@ SWIFT_PROTOCOL_NAMED("PurchasesType")
/// <a href="https://docs.revenuecat.com/docs/user-ids">Identifying Users</a>
/// </li>
/// <li>
/// <code>logOut()</code>
/// <code>Purchases/logOut()</code>
/// </li>
/// <li>
/// <code>isAnonymous</code>
/// <code>Purchases/isAnonymous</code>
/// </li>
/// <li>
/// <code>Purchases/appUserID</code>
Expand Down Expand Up @@ -1790,7 +1790,7 @@ SWIFT_PROTOCOL_NAMED("PurchasesType")
- (void)offeringsWithCompletionHandler:(void (^ _Nonnull)(RCOfferings * _Nullable, NSError * _Nullable))completionHandler SWIFT_AVAILABILITY(watchos,introduced=6.2) SWIFT_AVAILABILITY(tvos,introduced=13.0) SWIFT_AVAILABILITY(macos,introduced=10.15) SWIFT_AVAILABILITY(ios,introduced=13.0);
/// Fetches the <code>StoreProduct</code>s for your IAPs for given <code>productIdentifiers</code>.
/// Use this method if you aren’t using <code>Purchases/getOfferings(completion:)</code>.
/// You should use <code>getOfferings(completion:)</code> though.
/// You should use <code>Purchases/getOfferings(completion:)</code> though.
/// note:
/// <code>completion</code> may be called without <code>StoreProduct</code>s that you are expecting. This is usually caused by
/// iTunesConnect configuration errors. Ensure your IAPs have the “Ready to Submit” status in iTunesConnect.
Expand All @@ -1808,8 +1808,8 @@ SWIFT_PROTOCOL_NAMED("PurchasesType")
///
- (void)getProductsWithIdentifiers:(NSArray<NSString *> * _Nonnull)productIdentifiers completion:(void (^ _Nonnull)(NSArray<RCStoreProduct *> * _Nonnull))completion;
/// Fetches the <code>StoreProduct</code>s for your IAPs for given <code>productIdentifiers</code>.
/// Use this method if you aren’t using <code>getOfferings(completion:)</code>.
/// You should use <code>getOfferings(completion:)</code> though.
/// Use this method if you aren’t using <code>Purchases/getOfferings(completion:)</code>.
/// You should use <code>Purchases/getOfferings(completion:)</code> though.
/// note:
/// The result might not contain the <code>StoreProduct</code>s that you are expecting. This is usually caused by
/// iTunesConnect configuration errors. Ensure your IAPs have the “Ready to Submit” status in iTunesConnect.
Expand Down Expand Up @@ -1972,7 +1972,7 @@ SWIFT_PROTOCOL_NAMED("PurchasesType")
/// <code>StoreProduct/eligiblePromotionalOffers()</code>
/// </li>
/// <li>
/// <code>promotionalOffer(forProductDiscount:product:)</code>
/// <code>Purchases/promotionalOffer(forProductDiscount:product:)</code>
/// </li>
/// </ul>
/// \param product The <code>StoreProduct</code> the user intends to purchase.
Expand Down Expand Up @@ -2055,7 +2055,7 @@ SWIFT_PROTOCOL_NAMED("PurchasesType")
/// <h3>Related symbols</h3>
/// <ul>
/// <li>
/// <code>checkTrialOrIntroDiscountEligibility(product:completion:)</code>
/// <code>Purchases/checkTrialOrIntroDiscountEligibility(product:completion:)</code>
/// </li>
/// </ul>
/// \param productIdentifiers Array of product identifiers for which you want to compute eligibility
Expand All @@ -2079,7 +2079,7 @@ SWIFT_PROTOCOL_NAMED("PurchasesType")
/// <h3>Related symbols</h3>
/// <ul>
/// <li>
/// <code>checkTrialOrIntroDiscountEligibility(product:)</code>
/// <code>Purchases/checkTrialOrIntroDiscountEligibility(product:)</code>
/// </li>
/// </ul>
/// \param productIdentifiers Array of product identifiers for which you want to compute eligibility
Expand All @@ -2101,7 +2101,7 @@ SWIFT_PROTOCOL_NAMED("PurchasesType")
/// <h3>Related symbols</h3>
/// <ul>
/// <li>
/// <code>checkTrialOrIntroDiscountEligibility(productIdentifiers:completion:)</code>
/// <code>Purchases/checkTrialOrIntroDiscountEligibility(productIdentifiers:completion:)</code>
/// </li>
/// </ul>
/// \param product The <code>StoreProduct</code> for which you want to compute eligibility.
Expand All @@ -2125,14 +2125,15 @@ SWIFT_PROTOCOL_NAMED("PurchasesType")
/// <h3>Related symbols</h3>
/// <ul>
/// <li>
/// <code>checkTrialOrIntroDiscountEligibility(productIdentifiers:)</code>
/// <code>Purchases/checkTrialOrIntroDiscountEligibility(productIdentifiers:)</code>
/// </li>
/// </ul>
/// \param product The <code>StoreProduct</code> for which you want to compute eligibility.
///
- (void)checkTrialOrIntroDiscountEligibilityWithProduct:(RCStoreProduct * _Nonnull)product completionHandler:(void (^ _Nonnull)(enum RCIntroEligibilityStatus))completionHandler SWIFT_AVAILABILITY(watchos,introduced=6.2) SWIFT_AVAILABILITY(macos,introduced=10.15) SWIFT_AVAILABILITY(tvos,introduced=13.0) SWIFT_AVAILABILITY(ios,introduced=13.0);
/// Use this method to fetch <code>PromotionalOffer</code>
/// to use in <code>purchase(package:promotionalOffer:)</code> or <code>purchase(product:promotionalOffer:)</code>.
/// to use in <code>Purchases/purchase(package:promotionalOffer:)</code>
/// or <code>Purchases/purchase(product:promotionalOffer:)</code>.
/// <a href="https://docs.revenuecat.com/docs/ios-subscription-offers#promotional-offers">iOS Promotional Offers</a>.
/// note:
/// If you’re looking to use free trials or Introductory Offers instead,
Expand Down Expand Up @@ -2162,7 +2163,7 @@ SWIFT_PROTOCOL_NAMED("PurchasesType")
/// <h4>Related Symbols</h4>
/// <ul>
/// <li>
/// <code>promotionalOffer(forProductDiscount:product:)</code>
/// <code>Purchases/promotionalOffer(forProductDiscount:product:)</code>
/// </li>
/// <li>
/// <code>StoreProduct/eligiblePromotionalOffers()</code>
Expand Down Expand Up @@ -2265,8 +2266,8 @@ SWIFT_CLASS_NAMED("Purchases")
/// Returns the already configured instance of <code>Purchases</code>.
/// warning:
/// this method will crash with <code>fatalError</code> if <code>Purchases</code> has not been initialized through
/// <code>configure(withAPIKey:)</code> or one of its overloads. If there’s a chance that may have not happened yet,
/// you can use <code>isConfigured</code> to check if it’s safe to call.
/// <code>Purchases/configure(withAPIKey:)</code> or one of its overloads.
/// If there’s a chance that may have not happened yet, you can use <code>isConfigured</code> to check if it’s safe to call.
/// <h3>Related symbols</h3>
/// <ul>
/// <li>
Expand All @@ -2275,7 +2276,7 @@ SWIFT_CLASS_NAMED("Purchases")
/// </ul>
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) RCPurchases * _Nonnull sharedPurchases;)
+ (RCPurchases * _Nonnull)sharedPurchases SWIFT_WARN_UNUSED_RESULT;
/// Returns <code>true</code> if RevenueCat has already been initialized through <code>configure(withAPIKey:)</code>
/// Returns <code>true</code> if RevenueCat has already been initialized through <code>Purchases/configure(withAPIKey:)</code>
/// or one of is overloads.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL isConfigured;)
+ (BOOL)isConfigured SWIFT_WARN_UNUSED_RESULT;
Expand Down Expand Up @@ -3147,6 +3148,7 @@ SWIFT_CLASS_NAMED("StoreProductDiscount")
@property (nonatomic, readonly) enum RCDiscountType type;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) NSUInteger hash;
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
Expand Down Expand Up @@ -3201,6 +3203,7 @@ SWIFT_CLASS_NAMED("StoreTransaction")
@property (nonatomic, readonly, copy) NSDate * _Nonnull purchaseDate;
@property (nonatomic, readonly, copy) NSString * _Nonnull transactionIdentifier;
@property (nonatomic, readonly) NSInteger quantity;
@property (nonatomic, readonly, strong) RCStorefront * _Nullable storefront;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) NSUInteger hash;
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
Expand Down
2 changes: 1 addition & 1 deletion scripts/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=https://revenuecat.github.io/purchases-ios-docs/4.22.0-SNAPSHOT/documentation/revenuecat"/>
<meta http-equiv="refresh" content="0; url=https://revenuecat.github.io/purchases-ios-docs/4.22.0/documentation/revenuecat"/>
</head>
<body>
</body>
Expand Down
2 changes: 1 addition & 1 deletion scripts/docs/v4_api_migration_guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=https://revenuecat.github.io/purchases-ios-docs/4.22.0-SNAPSHOT/documentation/revenuecat/v4_api_migration_guide"/>
<meta http-equiv="refresh" content="0; url=https://revenuecat.github.io/purchases-ios-docs/4.22.0/documentation/revenuecat/v4_api_migration_guide"/>
</head>
<body>
</body>
Expand Down

0 comments on commit aafdba1

Please sign in to comment.