diff --git a/AdjustTests/AdjustTestApp/AdjustTestApp/AppDelegate.m b/AdjustTests/AdjustTestApp/AdjustTestApp/AppDelegate.m index b5240bfc0..cf3abca58 100644 --- a/AdjustTests/AdjustTestApp/AdjustTestApp/AppDelegate.m +++ b/AdjustTests/AdjustTestApp/AdjustTestApp/AppDelegate.m @@ -43,7 +43,7 @@ - (void)applicationWillTerminate:(UIApplication *)application { } - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { - [Adjust processDeeplink:url]; + [Adjust processDeeplink:[[ADJDeeplink alloc] initWithDeeplink:url]]; return YES; } diff --git a/examples/AdjustExample-FbPixel/AdjustExample-FbPixel/AppDelegate.m b/examples/AdjustExample-FbPixel/AdjustExample-FbPixel/AppDelegate.m index 863d6efc6..47802b4b5 100644 --- a/examples/AdjustExample-FbPixel/AdjustExample-FbPixel/AppDelegate.m +++ b/examples/AdjustExample-FbPixel/AdjustExample-FbPixel/AppDelegate.m @@ -29,13 +29,13 @@ - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDiction // url object contains the deep link // Call the below method to send deep link to Adjust backend - [Adjust processDeeplink:url]; + [Adjust processDeeplink:[[ADJDeeplink alloc] initWithDeeplink:url]]; return YES; } - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray> *restorableObjects))restorationHandler { if ([[userActivity activityType] isEqualToString:NSUserActivityTypeBrowsingWeb]) { - [Adjust processDeeplink:[userActivity webpageURL]]; + [Adjust processDeeplink:[[ADJDeeplink alloc] initWithDeeplink:[userActivity webpageURL]]]; } return YES; } diff --git a/examples/AdjustExample-ObjC/AdjustExample-ObjC/AppDelegate.m b/examples/AdjustExample-ObjC/AdjustExample-ObjC/AppDelegate.m index 22e4db261..e937b6226 100644 --- a/examples/AdjustExample-ObjC/AdjustExample-ObjC/AppDelegate.m +++ b/examples/AdjustExample-ObjC/AdjustExample-ObjC/AppDelegate.m @@ -52,7 +52,7 @@ - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDiction NSLog(@"Scheme based deep link opened an app: %@", url); // Call the below method to send deep link to Adjust backend - [Adjust processDeeplink:url]; + [Adjust processDeeplink:[[ADJDeeplink alloc] initWithDeeplink:url]]; return YES; } @@ -61,7 +61,7 @@ - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserAct if ([[userActivity activityType] isEqualToString:NSUserActivityTypeBrowsingWeb]) { NSLog(@"Universal link opened an app: %@", [userActivity webpageURL]); // Pass deep link to Adjust in order to potentially reattribute user. - [Adjust processDeeplink:[userActivity webpageURL]]; + [Adjust processDeeplink:[[ADJDeeplink alloc] initWithDeeplink:[userActivity webpageURL]]]; } return YES; diff --git a/examples/AdjustExample-Swift/AdjustExample-Swift/AppDelegate.swift b/examples/AdjustExample-Swift/AdjustExample-Swift/AppDelegate.swift index 54d21811f..59c40a7d5 100644 --- a/examples/AdjustExample-Swift/AdjustExample-Swift/AppDelegate.swift +++ b/examples/AdjustExample-Swift/AdjustExample-Swift/AppDelegate.swift @@ -49,7 +49,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, AdjustDelegate { // url object contains the deep link // Call the below method to send deep link to Adjust backend - Adjust.processDeeplink(url) + Adjust.processDeeplink(ADJDeeplink(deeplink: url)!) return true } @@ -57,7 +57,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, AdjustDelegate { if (userActivity.activityType == NSUserActivityTypeBrowsingWeb) { NSLog("Universal link opened an app: %@", userActivity.webpageURL!.absoluteString) // Pass deep link to Adjust in order to potentially reattribute user. - Adjust.processDeeplink(userActivity.webpageURL!) + Adjust.processDeeplink(ADJDeeplink(deeplink: userActivity.webpageURL!)!) } return true } diff --git a/examples/AdjustExample-WebView/AdjustExample-WebView/AppDelegate.m b/examples/AdjustExample-WebView/AdjustExample-WebView/AppDelegate.m index 90d361c7b..71f02d30c 100644 --- a/examples/AdjustExample-WebView/AdjustExample-WebView/AppDelegate.m +++ b/examples/AdjustExample-WebView/AdjustExample-WebView/AppDelegate.m @@ -36,13 +36,13 @@ - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDiction // url object contains the deep link // Call the below method to send deep link to Adjust backend - [Adjust processDeeplink:url]; + [Adjust processDeeplink:[[ADJDeeplink alloc] initWithDeeplink:url]]; return YES; } - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray> *restorableObjects))restorationHandler { if ([[userActivity activityType] isEqualToString:NSUserActivityTypeBrowsingWeb]) { - [Adjust processDeeplink:[userActivity webpageURL]]; + [Adjust processDeeplink:[[ADJDeeplink alloc] initWithDeeplink:[userActivity webpageURL]]]; } return YES; } diff --git a/examples/AdjustExample-iWatch/AdjustExample-iWatch/AppDelegate.m b/examples/AdjustExample-iWatch/AdjustExample-iWatch/AppDelegate.m index d4331022c..7484cb800 100644 --- a/examples/AdjustExample-iWatch/AdjustExample-iWatch/AppDelegate.m +++ b/examples/AdjustExample-iWatch/AdjustExample-iWatch/AppDelegate.m @@ -37,7 +37,7 @@ - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDiction // url object contains the deep link // Call the below method to send deep link to Adjust backend - [Adjust processDeeplink:url]; + [Adjust processDeeplink:[[ADJDeeplink alloc] initWithDeeplink:url]]; return YES; } diff --git a/examples/AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m b/examples/AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m index 4b2d1a872..b9378415d 100644 --- a/examples/AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m +++ b/examples/AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m @@ -58,7 +58,7 @@ - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDiction NSLog(@"Scheme based deep link opened an app: %@", url); // Call the below method to send deep link to Adjust backend - [Adjust processDeeplink:url]; + [Adjust processDeeplink:[[ADJDeeplink alloc] initWithDeeplink:url]]; return YES; } @@ -67,7 +67,7 @@ - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserAct if ([[userActivity activityType] isEqualToString:NSUserActivityTypeBrowsingWeb]) { NSLog(@"continueUserActivity method called with URL: %@", [userActivity webpageURL]); [Adjust convertUniversalLink:[userActivity webpageURL] withScheme:@"adjustExample"]; - [Adjust processDeeplink:[userActivity webpageURL]]; + [Adjust processDeeplink:[[ADJDeeplink alloc] initWithDeeplink:[userActivity webpageURL]]]; } return YES;