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
addAttribution
method has been renamed to setAttribution
, introducing the new ApphudAttributionData
class. This allows developers to override attribution key mappings if needed.
- Added support for custom attribution. Developers can now pass any attribution data to the
ApphudAttributionData
class, which will be fetched and displayed in all Apphud Charts.
Attribution Migration Guide:
- For AppsFlyer, replace the
addAttribution
method with the following:
Apphud.setAttribution(ApphudAttributionData(map ?: emptyMap()), ApphudAttributionProvider.APPSFLYER, AppsFlyerLib.shared().getAppsFlyerUID())
- For Firebase, replace the
addAttribution
method with the following:
Apphud.setAttribution(ApphudAttributionData(emptyMap()), ApphudAttributionProvider.FIREBASE, appInstanceId)
- For custom attribution, use the following code:
Apphud.setAttribution(ApphudAttributionData(yourCustomMap), ApphudAttributionProvider.CUSTOM, identifierOrNull)