RevenueCat / purchases-ios

In-app purchases and subscriptions made easy. Support for iOS, watchOS, tvOS, macOS, and visionOS.
https://www.revenuecat.com/
MIT License
2.37k stars 319 forks source link

Make purchase params & winback functions public #4488

Closed fire-at-will closed 2 weeks ago

fire-at-will commented 2 weeks ago

Description

This is a follow-up PR to https://github.com/RevenueCat/purchases-ios/pull/4485, which does the following:

  1. Makes the PurchaseParams functionality publicly available by removing the ENABLE_PURCHASE_PARAMS compiler flag checks
    • Note: The PurchaseParams functionality is not available if the ENABLE_CUSTOM_ENTITLEMENT_COMPUTATION flag is used
  2. Make the functions to fetch & redeem eligible win-back offers public
  3. Makes the new transaction metadata functionality public

Review ordering

This PR is based off of the purchase-params-api-enhancements PR to keep the PR size down. The PR for that branch should be reviewed first.

fire-at-will commented 2 weeks ago

@RCGitBot please test

fire-at-will commented 2 weeks ago

@RCGitBot please test

fire-at-will commented 2 weeks ago

@RCGitBot please test