Skip to content

2.7.0

Compare
Choose a tag to compare
@x401om x401om released this 13 Oct 20:44
· 19 commits to main since this release
  • [Android] Support for Google Billing Library v5+. Read more
  • [iOS] Since this version, the Adapty SDK will observe StoreKit 2 transactions, which will be helpful if you are using observer mode
  • The offerId property has been added to the AdaptyAccessLevel and AdaptySubscription entities in AdaptyProfile

⚠️ Breaking!

  • We have renamed AndroidSubscriptionUpdateProrationMode to AndroidSubscriptionUpdateReplacementMode
  • Introduced a new functionality for retrieving introductory offers eligibility using StoreKit 2. To fetch it, you should now use a separate method called .GetProductsIntroductoryOfferEligibility. The behavior of this function depends on your Adapty SDK configuration. It will utilize StoreKit 2 if available or fallback to a legacy logic based on receipt analysis. For more detailed information, please refer to our documentation. Read more
  • Adapty.Eligibility.Unknown was replaced with .NotApplicable (for products that cannot contain offers)
  • Adapty.PaywallProduct now has a unified structure for both systems
  • Introducing Adapty.Price structure. Migrate as follows:
    • product.Price -> product.Price.Amount
    • product.LocalizedPrice -> product.Price.LocalizedString
    • product.CurrencyCode -> product.price.CurrencyCode
    • product.CurrencySymbol -> product.Price.CurrencySymbol
  • Introducing AdaptySubscriptionDetails structure. Migrate as follows:
    • product.SubscriptionPeriod -> product.SubscriptionDetails.SubscriptionPeriod
    • product.LocalizedSubscriptionPeriod -> product.SubscriptionDetails.LocalizedSubscriptionPeriod
  • Introducing Adapty.SubscriptionPhase structure instead of Adapty.ProductDiscount. Phase represents either Introductory period (product.SubscriptionDetails.IntroductoryOffer) or Promo period (product.SubscriptionDetails.PromotionalOffer). Migrate as follows:
    • product.FreeTrialPeriod -> look into PaymentMode and SubscriptionPeriod properties of Adapty.SubscriptionPhase
    • product.LocalizedFreeTrialPeriod -> look into LocalizedSubscriptionPeriod property of Adapty.SubscriptionPhase
  • Other migration notes:
    • product.PromotionalOfferEligibility -> product.SubscriptionDetails.PromotionalOfferEligibility
    • product.PromotionalOfferId -> product.SubscriptionDetails.PromotionalOfferId
    • product.VariationId -> product.PaywallVariationId

Full Changelog: 2.4.4...2.7.0