Releases: apphud/ApphudSDK-Android
Releases · apphud/ApphudSDK-Android
v2.5.5
What's new in v2.5.5:
- Added an option to clear paywalls and placements cache before app launch.
- Internal improvements in retrying Google Play products
- Breaking: ApphudListener's
apphudFetchProductDetails
andproductsFetchCallback
methods are now called only ifProductDetails
array is not empty. - Fixed a bug from v2.5.1 that could lead to a crash, when there was no internet connection and fallback mode was enabling
v2.5.0
What's new in v2.5.0:
- Added
isConsumable
property toApphudNonRenewingPurchase
model. Returnstrue
if purchase was consumed. - [BREAKING]:
hasPremiumAccess
method now ignores consumed purchases. - Improved
ApphudProduct
model, now it contains duplicated methods ofProductDetails
and theirSubscriptionOfferDetails
andOneTimePurchaseOfferDetails
.
v2.4.5
v2.4.2
v2.4.0
What's New in v2.4.0:
This version is recommended for update.
- Enhanced Error Handling: There are now significant improvements in error handling, especially for scenarios when there is no internet connection on the device.
- Paywalls Fallback Enhancements: Internal improvements to the Paywalls Fallback mode.
- API Updates:
- Renamed method
placementsDidLoadCallback(callback: (List<ApphudPlacement>) -> Unit)
tofetchPlacements(callback: (List<ApphudPlacement>, ApphudError?) -> Unit)
. The updated method now returns an optional error. Refer to theApphudError
documentation for more details. - The method
paywallsDidLoadCallback(callback: (List<ApphudPaywall>, ApphudError?) -> Unit)
has been updated to return an optional error.
- Renamed method
- Guaranteed Response for Paywalls and Placements: All methods that fetch paywalls or placements are now designed to ensure a response under all circumstances, even in cases of errors or when Google Billing is unavailable.
- ApphudError Class Improvements: The
ApphudError
class has been improved to potentially include Google Billing error codes. - [IMPORTANT] Subscription Purchase Update: Apphud will now attempt to purchase a subscription even if an
offerToken
is not provided in the purchase method. The SDK will attempt to fetch the first available offer token and initiate the purchase with it. - [IMPORTANT] Renamed Methods: The method
refreshEntitlements
has been renamed torefreshUserData
.
v2.3.9
2.3.6
2.3.2
2.3.0
What's New in Apphud SDK 2.3.0
- Placements: Offers a strategic method to integrate paywalls throughout your app. This feature allows developers to position paywalls effectively in different app sections, such as onboarding, settings, etc., targeting distinct user audiences. For more comprehensive information, please refer to our Placements guide.
- New Callback in
Apphud.start(...)
: Added an optional callback toApphud.start(...)
method that returns anApphudUser
object. - [Breaking] Removed the
variationName
property from theApphudPaywall
object to avoid misleading usage. - New Methods:
- Added
suspend fun placements(): List<ApphudPlacement>
to retrieve an array ofApphudPlacement
objects with their inner Google Play products. - Added
suspend fun placement(identifier: String): ApphudPlacement?
to retrieve a specific placement by identifier. - Added
fun placementsDidLoadCallback(callback: (List<ApphudPlacement>) -> Unit)
as an alternative method to retrieve placements with their inner Google Play products in a callback. - Added
fun rawPlacements(): List<ApphudPlacement>
to retrieve placements immediately, without waiting for Google Play products to load. - Added
fun rawPaywalls(): List<ApphudPaywall>
to retrieve paywalls immediately, without waiting for Google Play products to load.
- Added
- [Breaking] Suspendable Methods:
- Made
suspend fun paywalls(): List<ApphudPaywall>
suspendable. - Made
suspend fun paywall(identifier: String): ApphudPaywall?
suspendable.
- Made
ApphudListener
- [Breaking] Renamed the method
fun userDidLoad()
tofun userDidLoad(user: ApphudUser)
. - New Listener Method: Added
fun placementsDidFullyLoad(placements: List<ApphudPlacement>)
.
2.2.3
Updated Dependencies. SDK updated its dependencies to more current versions.