Skip to content

Commit

Permalink
iOS: AppsFlyerManager make completion handler clear
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-magda committed Oct 11, 2023
1 parent 83b1e95 commit 78f4136
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ final class AppsFlyerManager: AnalyticEngine {
AppsFlyerLib.shared().logEvent(
name: name,
values: values,
completionHandler: { dictionary, error in
completionHandler: { dictionaryOrNil, errorOrNil in
#if DEBUG
if let error {
if let error = errorOrNil {
print("AppsFlyerManager: failed log event = \(name) with error =\(error)")
} else {
print("""
AppsFlyerManager: successfully logged event = \(name) with result = \(String(describing: dictionary))
AppsFlyerManager: successfully logged event = \(name) with result = \(String(describing: dictionaryOrNil))
""")
}
#endif
completionHandler(error)
completionHandler(errorOrNil)
}
)
}
Expand Down

0 comments on commit 78f4136

Please sign in to comment.