Commit 475d21c2 by Demid Merzlyakov

IOS-74: fix main thread warning.

parent d88342a7
...@@ -160,10 +160,12 @@ class CCPAHelper { ...@@ -160,10 +160,12 @@ class CCPAHelper {
AppsFlyerLib.shared().isStopped = !canCollectData AppsFlyerLib.shared().isStopped = !canCollectData
if canCollectData { if canCollectData {
onMain {
let appDelegate = UIApplication.shared.delegate as? AppDelegate let appDelegate = UIApplication.shared.delegate as? AppDelegate
appDelegate?.initializeAppsFlyer() appDelegate?.initializeAppsFlyer()
} }
} }
}
private func registerApp(reason: String) { private func registerApp(reason: String) {
guard !isRegistered else { guard !isRegistered else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment