Releases: adaptyteam/AdaptySDK-Unity
Releases · adaptyteam/AdaptySDK-Unity
2.2.2
2.2.1
2.2.0
Meet the second version of the Adapty SDK 🎉
See our What's new in Adapty Unity SDK 2.0 doc for API updates.
Adapty 2.0 introduces the following updates:
Breaking changes:
- User-initiated purchases are now automatically processed by the system, so we have removed the
OnDeferredPurchasesProduct
method fromAdaptyEventListener
. - We are no longer support Visual Paywalls and Promo Campaigns features, so you should remove the calls to the corresponding methods, if there were any
- Instead of getting all paywalls in one request with the
.GetPaywalls()
, it must be done separately for each paywall using.GetPaywall(id:)
- Products are no longer part of the paywall, they must be loaded separately with
.GetPaywallProducts(paywall:)
- It is no longer possible to use products outside of the paywall. If you need to handle a product, create a separate paywall for it (or for multiple products).
IntroductoryOfferEligibility
– instead of true/false we give a more extended list of options- The
Adapty.ProfileParameters.Builder
is redesigned:- Methods, related to custom attributes now can throw an exception, if key or value didn't pass validation
- Added an option to pass null values to builder functions for more convenience
- You can now remove customAttributes with the function
.RemoveCustomAttribute("key")
- You have to use
.Build()
method and pass resultingAdapty.ProfileParameters
object to.UpdateProfile
method
.SetAnalyticsDisabled()
method has been eliminated. Use the.SetAnalyticsDisabled
method ofAdapty.ProfileParameters.Builder
.- The
forceUpdate
parameter was removed from theGetPaywall
method. The result will always be up to date if it is possible to retrieve data from the server
Renames
PurchaserInfo
renamed toAdaptyProfile
.GetPurchaserInfo
renamed to.GetProfile
.OnReceiveUpdatedPurchaserInfo
was also renamed to.OnLoadLatestProfile
DeveloperId
field ofAdaptyPaywall
was renamed toId
Adapty.AttributionNetwork
renamed toAdapty.AttributionSource
Fixes
- Fixed wrong behavior of fallback paywalls in some cases
.SetFallbackPaywalls()
method now does not return errors related to StoreKit product retrieval- Incorrect user segmentation in some rare cases
Additions:
- Ability to log onboard screens with
.LogShowOnboarding()
. Read more - Added ability to get previously set
CustomAttributes
, now it is part ofAdapty.Profile
Under the hood:
- The server interaction layer was rewritten from scratch.
- The initial request sequence has been optimized and simplified
- Reduced the number of API calls made by SDK. Some of the request are now faster and transfer less data.
- Independent requests can be executed simultaneously
- StoreKit interaction layer was refactored
Full documentation can be found in here.