Skip to content

Commit

Permalink
Add conversionDataSuccess
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbzurovski committed Jun 19, 2024
1 parent fe7c0c3 commit 05fc60e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion RadixWallet/Clients/AppsFlyerClient/AppsFlyerClient+Live.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ extension AppsFlyerClient: DependencyKey {
AppsFlyerLib.shared().appleAppID = appId

AppsFlyerLib.shared().deepLinkDelegate = state.delegate
AppsFlyerLib.shared().delegate = state.delegate

#if DEBUG
AppsFlyerLib.shared().isDebug = true
Expand All @@ -36,7 +37,15 @@ extension AppsFlyerClient: DependencyKey {
)
}

private class Delegate: NSObject, DeepLinkDelegate, @unchecked Sendable {
private class Delegate: NSObject, DeepLinkDelegate, AppsFlyerLibDelegate, @unchecked Sendable {
func onConversionDataSuccess(_ conversionInfo: [AnyHashable: Any]) {
loggerGlobal.info("onConversionDataSuccess \(conversionInfo)")
}

func onConversionDataFail(_ error: any Error) {
loggerGlobal.info("onConversionDataFail \(error.localizedDescription)")
}

func didResolveDeepLink(_ result: DeepLinkResult) {
if let deepLink = result.deepLink {
loggerGlobal.info("did resolve deep link. Is deferred: \(deepLink.isDeferred). Click events: \(deepLink.clickEvent)")
Expand Down

0 comments on commit 05fc60e

Please sign in to comment.