5.0 - Screen Composer
11 months ago by Kevin Herembourg
Version 5.0 of the Purchasely SDK introduces support for the new Screen Composer and includes several major updates and breaking changes.
Version per platform
Changelog per platform is available on their GitHub repositories.
You can access them by clicking on the version number.
New features
- Support of our new Screen Composer
- Ability to set an array for a user attribute. The array must be of type String, Integer, Float or Boolean.
- Add 2 built-ins user attributes to allow you to build audiences based on user eligibility to an introductory offer
- Intro Offer Eligible Plans
- Intro Offer Eligible Products
Breaking Changes:
- iOS 12 minimum required
- Removed
ONESIGNAL_PLAYER_IDattribute. - Replaced
UIListenerwith UIHandler.
Android only
Android 5.0 support extendedWe reverted our change with version 5.0.1 to support min SDK 21 again (Android 5.0).
Please note that Google recently stated that Google Play Services supports only Android 6.0 and up. As such, In-App purchases that are part of Google Play Services, may not work properly on devices below Android 6.0 (SDK 23).
- Kotlin Updated: Upgraded to Kotlin 2.0.20.
- Updated Android Build Requirements:
compileSDK: 34minSDK: 21
- Updated purchase history retrieval:
- Removed
purchaseHistory(onSuccess, onError). - Use
purchaseHistory(): List<PLYPlan>instead.
- Removed
- Updated subscriber status check:
- Removed
isPastSubscriber(result: (Boolean) -> Unit). - Use
isPastSubscriber(): Booleaninstead.
- Removed
- Renamed
PLYPresentationViewPropertiestoPLYPresentationProperties. - Replaced
show/hide closeButtonbyshow/hide headerButton - Simplified Presentation API:
- Removed
FetchPresentationForPlacement. - Use
FetchPresentationinstead.
- Removed
- Fixed an issue with user attribute
has expired subscriptionthat could not have been computed on SDK start callback