AppsFlyer module
Installation
Section titled “Installation”Artifact: com.affise:module-appsflyer (module-appsflyer/build.gradle:50).
implementation("com.affise:module-appsflyer:1.7.8")Purpose
Section titled “Purpose”Send AppsFlyer event data to Affise.
The consumer app is expected to also integrate the official AppsFlyer SDK — this module only delegates events.
Entry class: AppsFlyerModule : AffiseModule(), AffiseAppsFlyerApi (module-appsflyer/src/main/java/com/affise/attribution/module/appsflyer/AppsFlyerModule.kt:9).
Public API: AffiseAppsFlyerApi.logEvent(eventName: String, eventValues: Map<String, Any>) (attribution/src/main/java/com/affise/attribution/modules/appsflyer/AffiseAppsFlyerApi.kt:5-7).
Wrapper on Affise.Module:
Affise.Module.AppsFlyer.logEvent(...)—attribution/src/main/java/com/affise/attribution/modules/attribution/AffiseAttributionModule.kt:17Affise.Module.AppsFlyer.hasModule()
Example
Section titled “Example”//AppsFlyer event dataval eventValues: Map<String, Any> = mapOf( AFInAppEventParameterName.PRICE to 1234.56, AFInAppEventParameterName.CONTENT_ID to "1234567",)// Send AppsFlyer eventAppsFlyerLib.getInstance().logEvent( applicationContext, AFInAppEventType.ADD_TO_WISH_LIST, eventValues)// Send AppsFlyer data to AffiseAffise.Module.AppsFlyer.logEvent(AFInAppEventType.ADD_TO_WISH_LIST, eventValues)Additional dependencies
Section titled “Additional dependencies”The module build.gradle does not declare the AppsFlyer SDK itself; your app must integrate AppsFlyer separately. No additional AndroidManifest.xml entries.
ProviderType values contributed
Section titled “ProviderType values contributed”None — the module only delegates events.