Releases: apphud/ApphudSDK-Android
Releases · apphud/ApphudSDK-Android
2.9.5
Release 3.0.0-beta1
Merge pull request #118 from apphud/FigmaPaywalls_v1 Figma paywalls v1
v2.9.3
v2.9.2
v2.9.1
What's New in v2.9.1:
- Minor bug fix related to ProductDetails loading with invalid product id.
What's new in v2.9.0:
- [Breaking] The
addAttributionmethod has been renamed tosetAttribution, introducing the newApphudAttributionDataclass. This allows developers to override attribution key mappings if needed. - Added support for custom attribution. Developers can now pass any attribution data to the
ApphudAttributionDataclass, which will be fetched and displayed in all Apphud Charts.
Attribution Migration Guide:
- For AppsFlyer, replace the
addAttributionmethod with the following:
Apphud.setAttribution(ApphudAttributionData(map ?: emptyMap()), ApphudAttributionProvider.APPSFLYER, AppsFlyerLib.shared().getAppsFlyerUID())- For Firebase, replace the
addAttributionmethod with the following:
Apphud.setAttribution(ApphudAttributionData(emptyMap()), ApphudAttributionProvider.FIREBASE, appInstanceId)- For custom attribution, use the following code:
Apphud.setAttribution(ApphudAttributionData(yourCustomMap), ApphudAttributionProvider.CUSTOM, identifierOrNull)v2.9.0
What's New in v2.9.0:
- [Breaking] The
addAttributionmethod has been renamed tosetAttribution, introducing the newApphudAttributionDataclass. This allows developers to override attribution key mappings if needed. - Added support for custom attribution. Developers can now pass any attribution data to the
ApphudAttributionDataclass, which will be fetched and displayed in all Apphud Charts.
Attribution Migration Guide:
- For AppsFlyer, replace the
addAttributionmethod with the following:
Apphud.setAttribution(ApphudAttributionData(map ?: emptyMap()), ApphudAttributionProvider.APPSFLYER, AppsFlyerLib.shared().getAppsFlyerUID())- For Firebase, replace the
addAttributionmethod with the following:
Apphud.setAttribution(ApphudAttributionData(emptyMap()), ApphudAttributionProvider.FIREBASE, appInstanceId)- For custom attribution, use the following code:
Apphud.setAttribution(ApphudAttributionData(yourCustomMap), ApphudAttributionProvider.CUSTOM, identifierOrNull)v2.8.4
v2.8.3
What's new in v2.8.3:
- Initial support for Web-to-Web flow. This introduces a new SDK method
fun attributeFromWeb(data: Map<String, Any>, callback: (Boolean, ApphudUser?) -> Unit). - Added an optional callback to
updateUserId(userId: UserId, callback: ((ApphudUser?) -> Unit)? = null)method.
v2.8.0
What's new in v2.8.0:
- Important: Added support for real-time audience segmentation in placements based on user properties. This includes two new methods
forceFlushUserPropertiesanddeferPlacements. Learn more. - Important: Starting this version, the SDK does not automatically load permission groups at launch. You should manually call updated
fun fetchPermissionGroups()method. - Important: Starting this version, the SDK automatically restores purchases at launch. Keep track of
fun apphudSubscriptionsUpdated(subscriptions: List<ApphudSubscription>)orfun apphudNonRenewingPurchasesUpdated(purchases: List<ApphudNonRenewingPurchase>)methods. - Important: Removed some deprecated methods that used paywalls without placements:
paywall(identifier: String): ApphudPaywall?,paywalls(),rawPaywalls(). Now only one deprecatedpaywallsDidLoadCallback()method left. - Now it is possible to use purchase method by passing only product_id without using
fetchPermissionGroups()method. - Method
fun refreshUserData(callback: ((ApphudUser?) -> Unit)? = null)now returnsApphudUserobject in a callback. - Added
purchaseTokenproperty toApphudSubscriptionandApphudNonRenewingPurchaseobjects. - Changed
ApphudGroup's propertyval products: List<ApphudProduct>?tofun productIds(): List<String>. - Internal improvements for User Properties APIs.
- Internal bug fixes and improvements.
2.7.4
What's new in v2.7.4:
Added 'apphudDidReceivePurchase' function to ApphudListener