2.7.0
- [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 theAdaptyAccessLevel
andAdaptySubscription
entities inAdaptyProfile
- We have renamed
AndroidSubscriptionUpdateProrationMode
toAndroidSubscriptionUpdateReplacementMode
- 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 ofAdapty.ProductDiscount
. Phase represents either Introductory period (product.SubscriptionDetails.IntroductoryOffer
) or Promo period (product.SubscriptionDetails.PromotionalOffer
). Migrate as follows:product.FreeTrialPeriod
-> look intoPaymentMode
andSubscriptionPeriod
properties ofAdapty.SubscriptionPhase
product.LocalizedFreeTrialPeriod
-> look intoLocalizedSubscriptionPeriod
property ofAdapty.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