@@ -45,7 +45,7 @@ private struct AppsFlyerSettings: Codable {
45
45
}
46
46
47
47
@objc
48
- class AppsFlyerDestination : UIResponder , DestinationPlugin , RemoteNotifications , iOSLifecycle {
48
+ class AppsFlyerDestination : UIResponder , DestinationPlugin {
49
49
let timeline = Timeline ( )
50
50
let type = PluginType . destination
51
51
let key = " AppsFlyer "
@@ -55,7 +55,6 @@ class AppsFlyerDestination: UIResponder, DestinationPlugin, RemoteNotifications,
55
55
fileprivate var settings : AppsFlyerSettings ? = nil
56
56
57
57
public func update( settings: Settings ) {
58
-
59
58
guard let settings: AppsFlyerSettings = settings. integrationSettings ( forPlugin: self ) else { return }
60
59
self . settings = settings
61
60
@@ -71,18 +70,6 @@ class AppsFlyerDestination: UIResponder, DestinationPlugin, RemoteNotifications,
71
70
if trackAttributionData ?? false {
72
71
AppsFlyerLib . shared ( ) . delegate = self
73
72
}
74
-
75
- func applicationDidBecomeActive( application: UIApplication ) {
76
- AppsFlyerLib . shared ( ) . start ( )
77
- }
78
-
79
- func openURL( _ url: URL , options: [ UIApplication . OpenURLOptionsKey : Any ] ) {
80
- AppsFlyerLib . shared ( ) . handleOpen ( url, options: options)
81
- }
82
-
83
- func receivedRemoteNotification( userInfo: [ AnyHashable : Any ] ) {
84
- AppsFlyerLib . shared ( ) . handlePushNotification ( userInfo)
85
- }
86
73
}
87
74
88
75
public func identify( event: IdentifyEvent ) -> IdentifyEvent ? {
@@ -139,6 +126,20 @@ class AppsFlyerDestination: UIResponder, DestinationPlugin, RemoteNotifications,
139
126
}
140
127
}
141
128
129
+ extension AppsFlyerDestination : RemoteNotifications , iOSLifecycle {
130
+ func applicationDidBecomeActive( application: UIApplication ? ) {
131
+ AppsFlyerLib . shared ( ) . start ( )
132
+ }
133
+
134
+ func openURL( _ url: URL , options: [ UIApplication . OpenURLOptionsKey : Any ] ) {
135
+ AppsFlyerLib . shared ( ) . handleOpen ( url, options: options)
136
+ }
137
+
138
+ func receivedRemoteNotification( userInfo: [ AnyHashable : Any ] ) {
139
+ AppsFlyerLib . shared ( ) . handlePushNotification ( userInfo)
140
+ }
141
+ }
142
+
142
143
//MARK: - UserActivities Protocol
143
144
144
145
extension AppsFlyerDestination : UserActivities {
0 commit comments