From b9593e788b916d67f8763a5e4cf419d1dcd826dd Mon Sep 17 00:00:00 2001 From: genadyb Date: Thu, 15 Feb 2024 15:52:42 +0100 Subject: [PATCH 01/10] chore: fix typos --- CHANGELOG.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b0fe7036..2da314fb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -178,7 +178,7 @@ #### Fixed - Fixed new Xcode 13 beta compile time errors for extensions targets (https://github.com/adjust/ios_sdk/pull/559). - Improved dummy iAd attribution responses filtering (https://github.com/adjust/ios_sdk/pull/524). -- Fixed SPM warnnings about `ADJLinkResolution.h` not being part of umbrella header (https://github.com/adjust/ios_sdk/pull/557). +- Fixed SPM warnings about `ADJLinkResolution.h` not being part of umbrella header (https://github.com/adjust/ios_sdk/pull/557). - Fixed some static code analysis warnings (https://github.com/adjust/ios_sdk/pull/558). --- @@ -640,7 +640,7 @@ #### Fixed - Replaced `NSLog` in `ADJSystemProfile` with the adjust logger. - It is no longer necessary to have attribution delegate implemented to get deferred deep links. -- Sending `os_build` or permenent version, not both. +- Sending `os_build` or permanent version, not both. --- @@ -922,7 +922,7 @@ - Added sending of short app version field. #### Changed -- Updating deep linking handling to be comaptible with iOS 9. +- Updating deep linking handling to be compatible with iOS 9. - Updated docs. #### Fixed @@ -1102,8 +1102,8 @@ #### Added - Added config object used for SDK initialisation. - Added possibility send currency together with revenue in the event. -- Added posibility to track parameters for client callbacks. -- Added posibility to track parameters for partner networks. +- Added possibility to track parameters for client callbacks. +- Added possibility to track parameters for partner networks. - Added `setOfflineMode` method to allow you to put SDK in offline mode. #### Changed @@ -1117,7 +1117,7 @@ - Added support for handling deferred deep links. #### Changed -- Removed static dependancy on `ADClient`. +- Removed static dependency on `ADClient`. --- @@ -1133,7 +1133,7 @@ ### Version 3.3.4 (19th June 2014) #### Added - Added tracker information to response data. -- Addded support for `Mixpanel`. +- Added support for `Mixpanel`. #### Changed - Updated docs. @@ -1278,7 +1278,7 @@ - Added support for `iOS 7`. - Added offline tracking. - Added persisted storage. -- Addud multi threading. +- Added multi-threading. --- @@ -1300,7 +1300,7 @@ ### Version 1.4 (17th January 2013) #### Added - Added session IDs and interval to last session event to session starts and ends. -- Added facebook attribution ID to installs for facebook install ads. +- Added Facebook attribution ID to installs for Facebook install ads. --- @@ -1337,3 +1337,4 @@ ### Version 1.0.0 (30th July 2012) #### Added - Initial release of the adjust SDK for iOS. + From 4310956387e832a8bf83ae2b84b695df866ffca0 Mon Sep 17 00:00:00 2001 From: uerceg Date: Tue, 27 Feb 2024 14:06:49 +0100 Subject: [PATCH 02/10] refac: track pre-init third party sharing in subsequent sdk initializations --- Adjust/ADJActivityHandler.m | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Adjust/ADJActivityHandler.m b/Adjust/ADJActivityHandler.m index f6ad60f23..b2492deb6 100644 --- a/Adjust/ADJActivityHandler.m +++ b/Adjust/ADJActivityHandler.m @@ -1030,6 +1030,28 @@ - (void)processSessionI:(ADJActivityHandler *)selfI { [ADJUserDefaults removeDisableThirdPartySharing]; return; + } else { + // these checks should run after SDK initialization after the first one + if ([ADJUserDefaults getDisableThirdPartySharing]) { + [selfI disableThirdPartySharingI:selfI]; + } + if (selfI.savedPreLaunch.preLaunchAdjustThirdPartySharingArray != nil) { + for (ADJThirdPartySharing *thirdPartySharing + in selfI.savedPreLaunch.preLaunchAdjustThirdPartySharingArray) + { + [selfI trackThirdPartySharingI:selfI + thirdPartySharing:thirdPartySharing]; + } + + selfI.savedPreLaunch.preLaunchAdjustThirdPartySharingArray = nil; + } + if (selfI.savedPreLaunch.lastMeasurementConsentTracked != nil) { + [selfI + trackMeasurementConsentI:selfI + enabled:[selfI.savedPreLaunch.lastMeasurementConsentTracked boolValue]]; + + selfI.savedPreLaunch.lastMeasurementConsentTracked = nil; + } } double lastInterval = now - selfI.activityState.lastActivity; From 795b6f10d6a7acbcb2cc6b447066ea505a1b34e2 Mon Sep 17 00:00:00 2001 From: uerceg Date: Tue, 27 Feb 2024 14:08:57 +0100 Subject: [PATCH 03/10] feat: update version number to 4.37.2 --- Adjust.podspec | 4 ++-- Adjust/ADJUtil.m | 2 +- Adjust/Adjust.h | 2 +- AdjustBridge/AdjustBridgeRegister.m | 2 +- VERSION | 2 +- examples/AdjustExample-Swift/Podfile.lock | 10 +++++----- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Adjust.podspec b/Adjust.podspec index c87ac2d73..e93f7f858 100644 --- a/Adjust.podspec +++ b/Adjust.podspec @@ -1,11 +1,11 @@ Pod::Spec.new do |s| s.name = "Adjust" - s.version = "4.37.1" + s.version = "4.37.2" s.summary = "This is the iOS SDK of adjust. You can read more about it at http://adjust.com." s.homepage = "https://github.com/adjust/ios_sdk" s.license = { :type => 'MIT', :file => 'MIT-LICENSE' } s.author = { "Adjust" => "sdk@adjust.com" } - s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.37.1" } + s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.37.2" } s.ios.deployment_target = '9.0' s.tvos.deployment_target = '9.0' s.framework = 'SystemConfiguration' diff --git a/Adjust/ADJUtil.m b/Adjust/ADJUtil.m index b239508f8..b0a3646b5 100644 --- a/Adjust/ADJUtil.m +++ b/Adjust/ADJUtil.m @@ -35,7 +35,7 @@ static NSRegularExpression *shortUniversalLinkRegex = nil; static NSRegularExpression *excludedDeeplinkRegex = nil; -static NSString * const kClientSdk = @"ios4.37.1"; +static NSString * const kClientSdk = @"ios4.37.2"; static NSString * const kDeeplinkParam = @"deep_link="; static NSString * const kSchemeDelimiter = @"://"; static NSString * const kDefaultScheme = @"AdjustUniversalScheme"; diff --git a/Adjust/Adjust.h b/Adjust/Adjust.h index 987c73519..6c6ec0bda 100644 --- a/Adjust/Adjust.h +++ b/Adjust/Adjust.h @@ -2,7 +2,7 @@ // Adjust.h // Adjust SDK // -// V4.37.1 +// V4.37.2 // Created by Christian Wellenbrock (@wellle) on 23rd July 2013. // Copyright (c) 2012-2021 Adjust GmbH. All rights reserved. // diff --git a/AdjustBridge/AdjustBridgeRegister.m b/AdjustBridge/AdjustBridgeRegister.m index d3f418bab..fb401ed69 100644 --- a/AdjustBridge/AdjustBridgeRegister.m +++ b/AdjustBridge/AdjustBridgeRegister.m @@ -280,7 +280,7 @@ + (NSString *)adjust_js { if (this.sdkPrefix) { return this.sdkPrefix; } else { - return 'web-bridge4.37.1'; + return 'web-bridge4.37.2'; } }, setTestOptions: function(testOptions) { diff --git a/VERSION b/VERSION index bc9fffbec..641d94f20 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.37.1 +4.37.2 diff --git a/examples/AdjustExample-Swift/Podfile.lock b/examples/AdjustExample-Swift/Podfile.lock index 241424bb1..c5ac9c983 100644 --- a/examples/AdjustExample-Swift/Podfile.lock +++ b/examples/AdjustExample-Swift/Podfile.lock @@ -1,7 +1,7 @@ PODS: - - Adjust (4.37.1): - - Adjust/Core (= 4.37.1) - - Adjust/Core (4.37.1) + - Adjust (4.37.2): + - Adjust/Core (= 4.37.2) + - Adjust/Core (4.37.2) DEPENDENCIES: - Adjust (from `../../`) @@ -11,8 +11,8 @@ EXTERNAL SOURCES: :path: "../../" SPEC CHECKSUMS: - Adjust: de140fb7f466ad6884ffc2bca2f9a3afbd285f42 + Adjust: a830d963025334aee8a62a7bac87825e297a841e PODFILE CHECKSUM: 4c79da456db9adb90cdd42adc7f721c7bb6490cd -COCOAPODS: 1.12.1 +COCOAPODS: 1.14.3 From 321b9425d2ee4ff8f67d15b240493c97f7d073fd Mon Sep 17 00:00:00 2001 From: uerceg Date: Tue, 27 Feb 2024 14:11:24 +0100 Subject: [PATCH 04/10] docs: update changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2da314fb1..2b6eefabd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +### Version 4.37.2 (27th February 2024) +#### Changed +- Added tracking of `third_party_sharing` and `measurement_consent` packages if invoked before SDK initialization in subsequent SDK initializations. + +--- + ### Version 4.37.1 (15th February 2024) #### Added - Added support for `TradPlus` ad revenue tracking. From 4b65ab444b7ab60aa55a3224863f79e22cfce723 Mon Sep 17 00:00:00 2001 From: uerceg Date: Wed, 28 Feb 2024 13:14:01 +0100 Subject: [PATCH 05/10] docs: update changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b6eefabd..94aafa7f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ -### Version 4.37.2 (27th February 2024) +### Version 4.37.2 (28th February 2024) #### Changed - Added tracking of `third_party_sharing` and `measurement_consent` packages if invoked before SDK initialization in subsequent SDK initializations. +- Cleaned up example apps. --- From 4548b90b6be7026fcfa5888293ca04e2dc286e54 Mon Sep 17 00:00:00 2001 From: Aditi3 Date: Wed, 28 Feb 2024 11:04:51 +0100 Subject: [PATCH 06/10] chore(examples): update deprecated method openURL(_:) Update the deprecated method openURL(_:) to open(_:options:completionHandler:) --- .../AdjustExample-ObjC/AppDelegate.m | 6 +++++- .../AdjustExample-Swift/AppDelegate.swift | 12 ++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/examples/AdjustExample-ObjC/AdjustExample-ObjC/AppDelegate.m b/examples/AdjustExample-ObjC/AdjustExample-ObjC/AppDelegate.m index 3f546d6f1..a2a16bf57 100644 --- a/examples/AdjustExample-ObjC/AdjustExample-ObjC/AppDelegate.m +++ b/examples/AdjustExample-ObjC/AdjustExample-ObjC/AppDelegate.m @@ -82,7 +82,11 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { NSLog(@"Scheme based deep link opened an app: %@", url); - // Pass deep link to Adjust in order to potentially reattribute user. + // add your code below to handle deep link + // (e.g., open deep link content) + // url object contains the deep link + + // Call the below method to send deep link to Adjust backend [Adjust appWillOpenUrl:url]; return YES; } diff --git a/examples/AdjustExample-Swift/AdjustExample-Swift/AppDelegate.swift b/examples/AdjustExample-Swift/AdjustExample-Swift/AppDelegate.swift index 4ccc9059c..3e01497ed 100644 --- a/examples/AdjustExample-Swift/AdjustExample-Swift/AppDelegate.swift +++ b/examples/AdjustExample-Swift/AdjustExample-Swift/AppDelegate.swift @@ -73,14 +73,18 @@ class AppDelegate: UIResponder, UIApplicationDelegate, AdjustDelegate { return true } - - func application(_ application: UIApplication, handleOpen url: URL) -> Bool { + + func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { NSLog("Scheme based deep link opened an app: %@", url.absoluteString) - // Pass deep link to Adjust in order to potentially reattribute user. + // add your code below to handle deep link + // (e.g., open deep link content) + // url object contains the deep link + + // Call the below method to send deep link to Adjust backend Adjust.appWillOpen(url) return true } - + func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { if (userActivity.activityType == NSUserActivityTypeBrowsingWeb) { NSLog("Universal link opened an app: %@", userActivity.webpageURL!.absoluteString) From e7195d03342283682b4218e85b0a03a9d0b18939 Mon Sep 17 00:00:00 2001 From: Aditi3 Date: Wed, 28 Feb 2024 11:31:23 +0100 Subject: [PATCH 07/10] fix(tvOS example): update purchase classes under Adjust framework --- .../project.pbxproj | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/examples/AdjustExample-tvOS/AdjustExample-tvOS.xcodeproj/project.pbxproj b/examples/AdjustExample-tvOS/AdjustExample-tvOS.xcodeproj/project.pbxproj index 3e13c0721..f9d4852ea 100644 --- a/examples/AdjustExample-tvOS/AdjustExample-tvOS.xcodeproj/project.pbxproj +++ b/examples/AdjustExample-tvOS/AdjustExample-tvOS.xcodeproj/project.pbxproj @@ -7,6 +7,9 @@ objects = { /* Begin PBXBuildFile section */ + 07C8C7D72B8F428F006979A1 /* ADJPurchaseVerificationResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7D12B8F428F006979A1 /* ADJPurchaseVerificationResult.m */; }; + 07C8C7D82B8F428F006979A1 /* ADJPurchase.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7D22B8F428F006979A1 /* ADJPurchase.m */; }; + 07C8C7D92B8F428F006979A1 /* ADJPurchaseVerificationHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7D32B8F428F006979A1 /* ADJPurchaseVerificationHandler.m */; }; 6F84514125B1B1C80004C7C0 /* ADJThirdPartySharing.m in Sources */ = {isa = PBXBuildFile; fileRef = 6F84513F25B1B1C70004C7C0 /* ADJThirdPartySharing.m */; }; 6FAB78B32636DD8200773869 /* ADJLinkResolution.m in Sources */ = {isa = PBXBuildFile; fileRef = 6FAB78B22636DD8200773869 /* ADJLinkResolution.m */; }; 6FBEE91424E4214800FEF3F1 /* ADJUrlStrategy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6FBEE91324E4214800FEF3F1 /* ADJUrlStrategy.m */; }; @@ -67,6 +70,12 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 07C8C7D12B8F428F006979A1 /* ADJPurchaseVerificationResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchaseVerificationResult.m; sourceTree = ""; }; + 07C8C7D22B8F428F006979A1 /* ADJPurchase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchase.m; sourceTree = ""; }; + 07C8C7D32B8F428F006979A1 /* ADJPurchaseVerificationHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchaseVerificationHandler.m; sourceTree = ""; }; + 07C8C7D42B8F428F006979A1 /* ADJPurchaseVerificationHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchaseVerificationHandler.h; sourceTree = ""; }; + 07C8C7D52B8F428F006979A1 /* ADJPurchaseVerificationResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchaseVerificationResult.h; sourceTree = ""; }; + 07C8C7D62B8F428F006979A1 /* ADJPurchase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchase.h; sourceTree = ""; }; 6F84513F25B1B1C70004C7C0 /* ADJThirdPartySharing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJThirdPartySharing.m; sourceTree = ""; }; 6F84514025B1B1C80004C7C0 /* ADJThirdPartySharing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJThirdPartySharing.h; sourceTree = ""; }; 6FAB78B12636DD8200773869 /* ADJLinkResolution.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJLinkResolution.h; sourceTree = ""; }; @@ -281,6 +290,12 @@ 6FAB78B22636DD8200773869 /* ADJLinkResolution.m */, 9D49D16F290FEBFC00042345 /* ADJSKAdNetwork.h */, 9D49D170290FEBFC00042345 /* ADJSKAdNetwork.m */, + 07C8C7D62B8F428F006979A1 /* ADJPurchase.h */, + 07C8C7D22B8F428F006979A1 /* ADJPurchase.m */, + 07C8C7D42B8F428F006979A1 /* ADJPurchaseVerificationHandler.h */, + 07C8C7D32B8F428F006979A1 /* ADJPurchaseVerificationHandler.m */, + 07C8C7D52B8F428F006979A1 /* ADJPurchaseVerificationResult.h */, + 07C8C7D12B8F428F006979A1 /* ADJPurchaseVerificationResult.m */, ); name = Adjust; path = ../../../Adjust; @@ -412,6 +427,8 @@ 9D449F5E1E6EE6C500E7E80B /* ADJUtil.m in Sources */, 9D449F4E1E6EE6C500E7E80B /* ADJEventFailure.m in Sources */, 9D449F461E6EE6C500E7E80B /* ADJAdjustFactory.m in Sources */, + 07C8C7D82B8F428F006979A1 /* ADJPurchase.m in Sources */, + 07C8C7D92B8F428F006979A1 /* ADJPurchaseVerificationHandler.m in Sources */, 9D449F3F1E6EE6C500E7E80B /* ADJActivityHandler.m in Sources */, 9D449F5C1E6EE6C500E7E80B /* ADJTimerOnce.m in Sources */, 9D449F401E6EE6C500E7E80B /* ADJActivityKind.m in Sources */, @@ -421,6 +438,7 @@ 9D449F4D1E6EE6C500E7E80B /* ADJEvent.m in Sources */, 963909B71BCC0D8300A2E8A4 /* main.m in Sources */, 6FBEE91424E4214800FEF3F1 /* ADJUrlStrategy.m in Sources */, + 07C8C7D72B8F428F006979A1 /* ADJPurchaseVerificationResult.m in Sources */, 9D449F491E6EE6C500E7E80B /* ADJBackoffStrategy.m in Sources */, 9D449F581E6EE6C500E7E80B /* ADJSessionParameters.m in Sources */, 9D49D171290FEBFC00042345 /* ADJSKAdNetwork.m in Sources */, From dff0ba933d48b3e40bcb0a77793f55d71a4b4c07 Mon Sep 17 00:00:00 2001 From: Aditi3 Date: Wed, 28 Feb 2024 11:32:48 +0100 Subject: [PATCH 08/10] chore(tvOS example): update deprecated method openURL(_:) --- .../AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m b/examples/AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m index d7fa21fd3..dec896738 100644 --- a/examples/AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m +++ b/examples/AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m @@ -74,7 +74,14 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( return YES; } -- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { +- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { + NSLog(@"Scheme based deep link opened an app: %@", url); + // Pass deep link to Adjust in order to potentially reattribute user. + // add your code below to handle deep link + // (e.g., open deep link content) + // url object contains the deep link + + // Call the below method to send deep link to Adjust backend [Adjust appWillOpenUrl:url]; return YES; } From 71391a1f95521956a54e4e1196231ea6994b5a78 Mon Sep 17 00:00:00 2001 From: Aditi3 Date: Wed, 28 Feb 2024 11:44:29 +0100 Subject: [PATCH 09/10] fix: update purchase classes for Adjust framework under example --- .../project.pbxproj | 36 +++++++++---------- .../AdjustExample-FbPixel/AppDelegate.m | 9 ++++- .../project.pbxproj | 36 +++++++++---------- .../AdjustExample-WebView/AppDelegate.m | 7 ++++ .../project.pbxproj | 18 ++++++++++ .../project.pbxproj | 18 ++++++++++ 6 files changed, 87 insertions(+), 37 deletions(-) diff --git a/examples/AdjustExample-FbPixel/AdjustExample-FbPixel.xcodeproj/project.pbxproj b/examples/AdjustExample-FbPixel/AdjustExample-FbPixel.xcodeproj/project.pbxproj index e864f5e90..34571a4d5 100644 --- a/examples/AdjustExample-FbPixel/AdjustExample-FbPixel.xcodeproj/project.pbxproj +++ b/examples/AdjustExample-FbPixel/AdjustExample-FbPixel.xcodeproj/project.pbxproj @@ -7,10 +7,10 @@ objects = { /* Begin PBXBuildFile section */ - 07A893432B0B980B0011DAB8 /* ADJPurchaseVerificationHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 07A8933F2B0B980B0011DAB8 /* ADJPurchaseVerificationHandler.m */; }; - 07A893442B0B980B0011DAB8 /* ADJPurchaseVerificationResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 07A893402B0B980B0011DAB8 /* ADJPurchaseVerificationResult.m */; }; - 07A893452B0B980B0011DAB8 /* ADJPurchase.m in Sources */ = {isa = PBXBuildFile; fileRef = 07A893412B0B980B0011DAB8 /* ADJPurchase.m */; }; 07AF832327BD3CBF00C5DD9E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 07AF832227BD3CBF00C5DD9E /* Main.storyboard */; }; + 07C8C7F22B8F447B006979A1 /* ADJPurchaseVerificationResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7EC2B8F447B006979A1 /* ADJPurchaseVerificationResult.m */; }; + 07C8C7F32B8F447B006979A1 /* ADJPurchase.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7ED2B8F447B006979A1 /* ADJPurchase.m */; }; + 07C8C7F42B8F447B006979A1 /* ADJPurchaseVerificationHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7EF2B8F447B006979A1 /* ADJPurchaseVerificationHandler.m */; }; 6FAB78C12636DDC400773869 /* ADJLinkResolution.m in Sources */ = {isa = PBXBuildFile; fileRef = 6FAB78BF2636DDC400773869 /* ADJLinkResolution.m */; }; 9D49D17A290FEC2E00042345 /* ADJSKAdNetwork.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D49D179290FEC2E00042345 /* ADJSKAdNetwork.m */; }; 9D9D1533212EB3920081445E /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D9D1532212EB3920081445E /* AppDelegate.m */; }; @@ -63,13 +63,13 @@ /* End PBXBuildFile section */ /* Begin PBXFileReference section */ - 07A8933D2B0B980B0011DAB8 /* ADJPurchase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ADJPurchase.h; path = "../../../Downloads/ios_sdk_dev-tracking_domain/Adjust/ADJPurchase.h"; sourceTree = ""; }; - 07A8933E2B0B980B0011DAB8 /* ADJPurchaseVerificationResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ADJPurchaseVerificationResult.h; path = "../../../Downloads/ios_sdk_dev-tracking_domain/Adjust/ADJPurchaseVerificationResult.h"; sourceTree = ""; }; - 07A8933F2B0B980B0011DAB8 /* ADJPurchaseVerificationHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ADJPurchaseVerificationHandler.m; path = "../../../Downloads/ios_sdk_dev-tracking_domain/Adjust/ADJPurchaseVerificationHandler.m"; sourceTree = ""; }; - 07A893402B0B980B0011DAB8 /* ADJPurchaseVerificationResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ADJPurchaseVerificationResult.m; path = "../../../Downloads/ios_sdk_dev-tracking_domain/Adjust/ADJPurchaseVerificationResult.m"; sourceTree = ""; }; - 07A893412B0B980B0011DAB8 /* ADJPurchase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ADJPurchase.m; path = "../../../Downloads/ios_sdk_dev-tracking_domain/Adjust/ADJPurchase.m"; sourceTree = ""; }; - 07A893422B0B980B0011DAB8 /* ADJPurchaseVerificationHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ADJPurchaseVerificationHandler.h; path = "../../../Downloads/ios_sdk_dev-tracking_domain/Adjust/ADJPurchaseVerificationHandler.h"; sourceTree = ""; }; 07AF832227BD3CBF00C5DD9E /* Main.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; + 07C8C7EC2B8F447B006979A1 /* ADJPurchaseVerificationResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchaseVerificationResult.m; sourceTree = ""; }; + 07C8C7ED2B8F447B006979A1 /* ADJPurchase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchase.m; sourceTree = ""; }; + 07C8C7EE2B8F447B006979A1 /* ADJPurchase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchase.h; sourceTree = ""; }; + 07C8C7EF2B8F447B006979A1 /* ADJPurchaseVerificationHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchaseVerificationHandler.m; sourceTree = ""; }; + 07C8C7F02B8F447B006979A1 /* ADJPurchaseVerificationHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchaseVerificationHandler.h; sourceTree = ""; }; + 07C8C7F12B8F447B006979A1 /* ADJPurchaseVerificationResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchaseVerificationResult.h; sourceTree = ""; }; 6FAB78BF2636DDC400773869 /* ADJLinkResolution.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJLinkResolution.m; sourceTree = ""; }; 6FAB78C02636DDC400773869 /* ADJLinkResolution.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJLinkResolution.h; sourceTree = ""; }; 9D49D178290FEC2E00042345 /* ADJSKAdNetwork.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJSKAdNetwork.h; sourceTree = ""; }; @@ -298,12 +298,12 @@ 6FAB78BF2636DDC400773869 /* ADJLinkResolution.m */, 9D49D178290FEC2E00042345 /* ADJSKAdNetwork.h */, 9D49D179290FEC2E00042345 /* ADJSKAdNetwork.m */, - 07A8933D2B0B980B0011DAB8 /* ADJPurchase.h */, - 07A893412B0B980B0011DAB8 /* ADJPurchase.m */, - 07A893422B0B980B0011DAB8 /* ADJPurchaseVerificationHandler.h */, - 07A8933F2B0B980B0011DAB8 /* ADJPurchaseVerificationHandler.m */, - 07A8933E2B0B980B0011DAB8 /* ADJPurchaseVerificationResult.h */, - 07A893402B0B980B0011DAB8 /* ADJPurchaseVerificationResult.m */, + 07C8C7EE2B8F447B006979A1 /* ADJPurchase.h */, + 07C8C7ED2B8F447B006979A1 /* ADJPurchase.m */, + 07C8C7F02B8F447B006979A1 /* ADJPurchaseVerificationHandler.h */, + 07C8C7EF2B8F447B006979A1 /* ADJPurchaseVerificationHandler.m */, + 07C8C7F12B8F447B006979A1 /* ADJPurchaseVerificationResult.h */, + 07C8C7EC2B8F447B006979A1 /* ADJPurchaseVerificationResult.m */, ); name = Adjust; path = ../../../Adjust; @@ -427,16 +427,13 @@ 9DF92F202630F377000FC3FC /* ADJResponseData.m in Sources */, 9DF92F1C2630F377000FC3FC /* ADJActivityPackage.m in Sources */, 9DF92F0C2630F377000FC3FC /* ADJEventSuccess.m in Sources */, - 07A893442B0B980B0011DAB8 /* ADJPurchaseVerificationResult.m in Sources */, 9DF92FB02630F3A1000FC3FC /* WKWebViewJavascriptBridge.m in Sources */, - 07A893432B0B980B0011DAB8 /* ADJPurchaseVerificationHandler.m in Sources */, 9DF92F232630F377000FC3FC /* ADJUserDefaults.m in Sources */, 9DF92F182630F377000FC3FC /* NSData+ADJAdditions.m in Sources */, 9DF92F212630F377000FC3FC /* ADJPackageBuilder.m in Sources */, 9DF92F132630F377000FC3FC /* Adjust.m in Sources */, 9DF92F172630F377000FC3FC /* NSString+ADJAdditions.m in Sources */, 9DF92F052630F377000FC3FC /* ADJTimerOnce.m in Sources */, - 07A893452B0B980B0011DAB8 /* ADJPurchase.m in Sources */, 9DF92F072630F377000FC3FC /* ADJRequestHandler.m in Sources */, 9DF92F122630F377000FC3FC /* ADJBackoffStrategy.m in Sources */, 9DF92F222630F377000FC3FC /* ADJSubscription.m in Sources */, @@ -457,14 +454,17 @@ 9DF92F0F2630F377000FC3FC /* ADJTimerCycle.m in Sources */, 9DF92FB12630F3A1000FC3FC /* WebViewJavascriptBridge_JS.m in Sources */, 9DF92F0E2630F377000FC3FC /* ADJSessionFailure.m in Sources */, + 07C8C7F22B8F447B006979A1 /* ADJPurchaseVerificationResult.m in Sources */, 9DF92F1E2630F377000FC3FC /* ADJUrlStrategy.m in Sources */, 6FAB78C12636DDC400773869 /* ADJLinkResolution.m in Sources */, 9DF92F1B2630F377000FC3FC /* ADJThirdPartySharing.m in Sources */, + 07C8C7F42B8F447B006979A1 /* ADJPurchaseVerificationHandler.m in Sources */, 9DF92F162630F377000FC3FC /* ADJActivityKind.m in Sources */, 9DF92F092630F377000FC3FC /* ADJEvent.m in Sources */, 9DF92F0D2630F377000FC3FC /* ADJActivityState.m in Sources */, 9DF92F0A2630F377000FC3FC /* ADJSessionSuccess.m in Sources */, 9DF92F042630F377000FC3FC /* ADJAdRevenue.m in Sources */, + 07C8C7F32B8F447B006979A1 /* ADJPurchase.m in Sources */, 9DF92F142630F377000FC3FC /* ADJConfig.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/examples/AdjustExample-FbPixel/AdjustExample-FbPixel/AppDelegate.m b/examples/AdjustExample-FbPixel/AdjustExample-FbPixel/AppDelegate.m index 79e3b7ee2..47cf39eb6 100644 --- a/examples/AdjustExample-FbPixel/AdjustExample-FbPixel/AppDelegate.m +++ b/examples/AdjustExample-FbPixel/AdjustExample-FbPixel/AppDelegate.m @@ -22,7 +22,14 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( return YES; } -- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { +- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { + NSLog(@"Scheme based deep link opened an app: %@", url); + // Pass deep link to Adjust in order to potentially reattribute user. + // add your code below to handle deep link + // (e.g., open deep link content) + // url object contains the deep link + + // Call the below method to send deep link to Adjust backend [Adjust appWillOpenUrl:url]; return YES; } diff --git a/examples/AdjustExample-WebView/AdjustExample-WebView.xcodeproj/project.pbxproj b/examples/AdjustExample-WebView/AdjustExample-WebView.xcodeproj/project.pbxproj index 818ae7f98..3f29f349d 100644 --- a/examples/AdjustExample-WebView/AdjustExample-WebView.xcodeproj/project.pbxproj +++ b/examples/AdjustExample-WebView/AdjustExample-WebView.xcodeproj/project.pbxproj @@ -7,9 +7,9 @@ objects = { /* Begin PBXBuildFile section */ - 07A8933A2B0B95D50011DAB8 /* ADJPurchaseVerificationResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 07A893362B0B95D50011DAB8 /* ADJPurchaseVerificationResult.m */; }; - 07A8933B2B0B95D50011DAB8 /* ADJPurchaseVerificationHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 07A893372B0B95D50011DAB8 /* ADJPurchaseVerificationHandler.m */; }; - 07A8933C2B0B95D50011DAB8 /* ADJPurchase.m in Sources */ = {isa = PBXBuildFile; fileRef = 07A893382B0B95D50011DAB8 /* ADJPurchase.m */; }; + 07C8C7E92B8F4404006979A1 /* ADJPurchaseVerificationHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7E32B8F4404006979A1 /* ADJPurchaseVerificationHandler.m */; }; + 07C8C7EA2B8F4404006979A1 /* ADJPurchase.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7E52B8F4404006979A1 /* ADJPurchase.m */; }; + 07C8C7EB2B8F4404006979A1 /* ADJPurchaseVerificationResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7E82B8F4404006979A1 /* ADJPurchaseVerificationResult.m */; }; 6F84513D25B1B1B40004C7C0 /* ADJThirdPartySharing.m in Sources */ = {isa = PBXBuildFile; fileRef = 6F84513B25B1B1B40004C7C0 /* ADJThirdPartySharing.m */; }; 6FAB78AF2636DD6B00773869 /* ADJLinkResolution.m in Sources */ = {isa = PBXBuildFile; fileRef = 6FAB78AE2636DD6B00773869 /* ADJLinkResolution.m */; }; 6FBEE91124E4213900FEF3F1 /* ADJUrlStrategy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6FBEE91024E4213800FEF3F1 /* ADJUrlStrategy.m */; }; @@ -66,12 +66,12 @@ /* End PBXBuildFile section */ /* Begin PBXFileReference section */ - 07A893342B0B95D50011DAB8 /* ADJPurchaseVerificationResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ADJPurchaseVerificationResult.h; path = "../../../Downloads/ios_sdk_dev-tracking_domain/Adjust/ADJPurchaseVerificationResult.h"; sourceTree = ""; }; - 07A893352B0B95D50011DAB8 /* ADJPurchaseVerificationHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ADJPurchaseVerificationHandler.h; path = "../../../Downloads/ios_sdk_dev-tracking_domain/Adjust/ADJPurchaseVerificationHandler.h"; sourceTree = ""; }; - 07A893362B0B95D50011DAB8 /* ADJPurchaseVerificationResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ADJPurchaseVerificationResult.m; path = "../../../Downloads/ios_sdk_dev-tracking_domain/Adjust/ADJPurchaseVerificationResult.m"; sourceTree = ""; }; - 07A893372B0B95D50011DAB8 /* ADJPurchaseVerificationHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ADJPurchaseVerificationHandler.m; path = "../../../Downloads/ios_sdk_dev-tracking_domain/Adjust/ADJPurchaseVerificationHandler.m"; sourceTree = ""; }; - 07A893382B0B95D50011DAB8 /* ADJPurchase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ADJPurchase.m; path = "../../../Downloads/ios_sdk_dev-tracking_domain/Adjust/ADJPurchase.m"; sourceTree = ""; }; - 07A893392B0B95D50011DAB8 /* ADJPurchase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ADJPurchase.h; path = "../../../Downloads/ios_sdk_dev-tracking_domain/Adjust/ADJPurchase.h"; sourceTree = ""; }; + 07C8C7E32B8F4404006979A1 /* ADJPurchaseVerificationHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchaseVerificationHandler.m; sourceTree = ""; }; + 07C8C7E42B8F4404006979A1 /* ADJPurchase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchase.h; sourceTree = ""; }; + 07C8C7E52B8F4404006979A1 /* ADJPurchase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchase.m; sourceTree = ""; }; + 07C8C7E62B8F4404006979A1 /* ADJPurchaseVerificationHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchaseVerificationHandler.h; sourceTree = ""; }; + 07C8C7E72B8F4404006979A1 /* ADJPurchaseVerificationResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchaseVerificationResult.h; sourceTree = ""; }; + 07C8C7E82B8F4404006979A1 /* ADJPurchaseVerificationResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchaseVerificationResult.m; sourceTree = ""; }; 6F84513B25B1B1B40004C7C0 /* ADJThirdPartySharing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJThirdPartySharing.m; sourceTree = ""; }; 6F84513C25B1B1B40004C7C0 /* ADJThirdPartySharing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJThirdPartySharing.h; sourceTree = ""; }; 6FAB78AD2636DD6B00773869 /* ADJLinkResolution.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJLinkResolution.h; sourceTree = ""; }; @@ -319,12 +319,12 @@ 6FAB78AE2636DD6B00773869 /* ADJLinkResolution.m */, 9D49D16C290FEBEB00042345 /* ADJSKAdNetwork.h */, 9D49D16D290FEBEB00042345 /* ADJSKAdNetwork.m */, - 07A893392B0B95D50011DAB8 /* ADJPurchase.h */, - 07A893382B0B95D50011DAB8 /* ADJPurchase.m */, - 07A893352B0B95D50011DAB8 /* ADJPurchaseVerificationHandler.h */, - 07A893372B0B95D50011DAB8 /* ADJPurchaseVerificationHandler.m */, - 07A893342B0B95D50011DAB8 /* ADJPurchaseVerificationResult.h */, - 07A893362B0B95D50011DAB8 /* ADJPurchaseVerificationResult.m */, + 07C8C7E42B8F4404006979A1 /* ADJPurchase.h */, + 07C8C7E52B8F4404006979A1 /* ADJPurchase.m */, + 07C8C7E62B8F4404006979A1 /* ADJPurchaseVerificationHandler.h */, + 07C8C7E32B8F4404006979A1 /* ADJPurchaseVerificationHandler.m */, + 07C8C7E72B8F4404006979A1 /* ADJPurchaseVerificationResult.h */, + 07C8C7E82B8F4404006979A1 /* ADJPurchaseVerificationResult.m */, ); name = Adjust; path = ../../../Adjust; @@ -460,6 +460,7 @@ 9D449EDC1E6EDD4100E7E80B /* ADJActivityPackage.m in Sources */, 9D449EF71E6EDD4100E7E80B /* ADJTimerOnce.m in Sources */, 9DF92D9F2630EE54000FC3FC /* ADJPackageParams.m in Sources */, + 07C8C7E92B8F4404006979A1 /* ADJPurchaseVerificationHandler.m in Sources */, 9D449EF81E6EDD4100E7E80B /* Adjust.m in Sources */, 9D449EDF1E6EDD4100E7E80B /* NSString+ADJAdditions.m in Sources */, 9D449EF31E6EDD4100E7E80B /* ADJSessionParameters.m in Sources */, @@ -468,7 +469,6 @@ 6F84513D25B1B1B40004C7C0 /* ADJThirdPartySharing.m in Sources */, 9DD0E9C41F4587C600B2A759 /* ADJUserDefaults.m in Sources */, 9D75F1991D07463800E5D222 /* WKWebViewJavascriptBridge.m in Sources */, - 07A8933C2B0B95D50011DAB8 /* ADJPurchase.m in Sources */, 9D10833D1CFDD8F00050568B /* WKWebViewController.m in Sources */, 9D449EE51E6EDD4100E7E80B /* ADJConfig.m in Sources */, 9DF38239260E9DDE0033F5A1 /* NSNumber+ADJAdditions.m in Sources */, @@ -480,15 +480,14 @@ 9D75F1971D07463800E5D222 /* WebViewJavascriptBridge_JS.m in Sources */, 968595F11D0B2E630011CA2B /* AdjustBridgeRegister.m in Sources */, 9D449EF61E6EDD4100E7E80B /* ADJTimerCycle.m in Sources */, + 07C8C7EB2B8F4404006979A1 /* ADJPurchaseVerificationResult.m in Sources */, 9D75F1981D07463800E5D222 /* WebViewJavascriptBridgeBase.m in Sources */, 9D449EE21E6EDD4100E7E80B /* ADJAttribution.m in Sources */, 9D449EE81E6EDD4100E7E80B /* ADJEvent.m in Sources */, 9D49D16E290FEBEB00042345 /* ADJSKAdNetwork.m in Sources */, 9D449EF11E6EDD4100E7E80B /* ADJSdkClickHandler.m in Sources */, 9D449EDB1E6EDD4100E7E80B /* ADJActivityKind.m in Sources */, - 07A8933B2B0B95D50011DAB8 /* ADJPurchaseVerificationHandler.m in Sources */, 9D449EDE1E6EDD4100E7E80B /* NSData+ADJAdditions.m in Sources */, - 07A8933A2B0B95D50011DAB8 /* ADJPurchaseVerificationResult.m in Sources */, 9D449EED1E6EDD4100E7E80B /* ADJPackageBuilder.m in Sources */, 6FAB78AF2636DD6B00773869 /* ADJLinkResolution.m in Sources */, 9D449EF01E6EDD4100E7E80B /* ADJResponseData.m in Sources */, @@ -497,6 +496,7 @@ 9D2F24112447DE0A00B7CA90 /* ADJSubscription.m in Sources */, 9D449EEE1E6EDD4100E7E80B /* ADJPackageHandler.m in Sources */, 9D449EE91E6EDD4100E7E80B /* ADJEventFailure.m in Sources */, + 07C8C7EA2B8F4404006979A1 /* ADJPurchase.m in Sources */, 9D449EF41E6EDD4100E7E80B /* ADJSessionSuccess.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/examples/AdjustExample-WebView/AdjustExample-WebView/AppDelegate.m b/examples/AdjustExample-WebView/AdjustExample-WebView/AppDelegate.m index 069e7293c..af10d44fb 100644 --- a/examples/AdjustExample-WebView/AdjustExample-WebView/AppDelegate.m +++ b/examples/AdjustExample-WebView/AdjustExample-WebView/AppDelegate.m @@ -30,6 +30,13 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( } - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { + NSLog(@"Scheme based deep link opened an app: %@", url); + // Pass deep link to Adjust in order to potentially reattribute user. + // add your code below to handle deep link + // (e.g., open deep link content) + // url object contains the deep link + + // Call the below method to send deep link to Adjust backend [Adjust appWillOpenUrl:url]; return YES; } diff --git a/examples/AdjustExample-iMessage/AdjustExample-iMessage.xcodeproj/project.pbxproj b/examples/AdjustExample-iMessage/AdjustExample-iMessage.xcodeproj/project.pbxproj index 55e2127af..00af58cba 100644 --- a/examples/AdjustExample-iMessage/AdjustExample-iMessage.xcodeproj/project.pbxproj +++ b/examples/AdjustExample-iMessage/AdjustExample-iMessage.xcodeproj/project.pbxproj @@ -7,6 +7,9 @@ objects = { /* Begin PBXBuildFile section */ + 07C8C7E02B8F43AA006979A1 /* ADJPurchase.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7DD2B8F43A9006979A1 /* ADJPurchase.m */; }; + 07C8C7E12B8F43AA006979A1 /* ADJPurchaseVerificationHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7DE2B8F43A9006979A1 /* ADJPurchaseVerificationHandler.m */; }; + 07C8C7E22B8F43AA006979A1 /* ADJPurchaseVerificationResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7DF2B8F43A9006979A1 /* ADJPurchaseVerificationResult.m */; }; 6F84514A25B1B1F40004C7C0 /* ADJThirdPartySharing.m in Sources */ = {isa = PBXBuildFile; fileRef = 6F84514825B1B1F40004C7C0 /* ADJThirdPartySharing.m */; }; 6FAB78BC2636DDAF00773869 /* ADJLinkResolution.m in Sources */ = {isa = PBXBuildFile; fileRef = 6FAB78BA2636DDAE00773869 /* ADJLinkResolution.m */; }; 6FBEE91A24E4218C00FEF3F1 /* ADJUrlStrategy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6FBEE91824E4218B00FEF3F1 /* ADJUrlStrategy.m */; }; @@ -76,6 +79,12 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 07C8C7DA2B8F43A9006979A1 /* ADJPurchaseVerificationHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchaseVerificationHandler.h; sourceTree = ""; }; + 07C8C7DB2B8F43A9006979A1 /* ADJPurchase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchase.h; sourceTree = ""; }; + 07C8C7DC2B8F43A9006979A1 /* ADJPurchaseVerificationResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchaseVerificationResult.h; sourceTree = ""; }; + 07C8C7DD2B8F43A9006979A1 /* ADJPurchase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchase.m; sourceTree = ""; }; + 07C8C7DE2B8F43A9006979A1 /* ADJPurchaseVerificationHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchaseVerificationHandler.m; sourceTree = ""; }; + 07C8C7DF2B8F43A9006979A1 /* ADJPurchaseVerificationResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchaseVerificationResult.m; sourceTree = ""; }; 6F84514825B1B1F40004C7C0 /* ADJThirdPartySharing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJThirdPartySharing.m; sourceTree = ""; }; 6F84514925B1B1F40004C7C0 /* ADJThirdPartySharing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJThirdPartySharing.h; sourceTree = ""; }; 6FAB78BA2636DDAE00773869 /* ADJLinkResolution.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJLinkResolution.m; sourceTree = ""; }; @@ -291,6 +300,12 @@ 6FAB78BA2636DDAE00773869 /* ADJLinkResolution.m */, 9D49D175290FEC2000042345 /* ADJSKAdNetwork.h */, 9D49D176290FEC2000042345 /* ADJSKAdNetwork.m */, + 07C8C7DB2B8F43A9006979A1 /* ADJPurchase.h */, + 07C8C7DD2B8F43A9006979A1 /* ADJPurchase.m */, + 07C8C7DA2B8F43A9006979A1 /* ADJPurchaseVerificationHandler.h */, + 07C8C7DE2B8F43A9006979A1 /* ADJPurchaseVerificationHandler.m */, + 07C8C7DC2B8F43A9006979A1 /* ADJPurchaseVerificationResult.h */, + 07C8C7DF2B8F43A9006979A1 /* ADJPurchaseVerificationResult.m */, ); name = Adjust; path = ../../../Adjust; @@ -416,6 +431,7 @@ 9D01686920FF88F60029CFFF /* ADJActivityKind.m in Sources */, 9D01685F20FF88F60029CFFF /* ADJEventSuccess.m in Sources */, 9D01685920FF88F60029CFFF /* ADJRequestHandler.m in Sources */, + 07C8C7E12B8F43AA006979A1 /* ADJPurchaseVerificationHandler.m in Sources */, 9D01686420FF88F60029CFFF /* ADJLogger.m in Sources */, 9D01687020FF88F60029CFFF /* ADJUtil.m in Sources */, 9D01685B20FF88F60029CFFF /* ADJSdkClickHandler.m in Sources */, @@ -433,8 +449,10 @@ 9D01685E20FF88F60029CFFF /* ADJEventFailure.m in Sources */, 9D3A2AE72626518E00BD6E44 /* ADJAdRevenue.m in Sources */, 9D01685720FF88F60029CFFF /* ADJTimerOnce.m in Sources */, + 07C8C7E02B8F43AA006979A1 /* ADJPurchase.m in Sources */, 9D01686220FF88F60029CFFF /* ADJTimerCycle.m in Sources */, 9D01686D20FF88F60029CFFF /* ADJAttribution.m in Sources */, + 07C8C7E22B8F43AA006979A1 /* ADJPurchaseVerificationResult.m in Sources */, 9D01686320FF88F60029CFFF /* ADJSessionParameters.m in Sources */, 9D01686B20FF88F60029CFFF /* NSData+ADJAdditions.m in Sources */, 9D01685C20FF88F60029CFFF /* ADJEvent.m in Sources */, diff --git a/examples/AdjustExample-iWatch/AdjustExample-iWatch.xcodeproj/project.pbxproj b/examples/AdjustExample-iWatch/AdjustExample-iWatch.xcodeproj/project.pbxproj index d0476252b..f43dde39c 100644 --- a/examples/AdjustExample-iWatch/AdjustExample-iWatch.xcodeproj/project.pbxproj +++ b/examples/AdjustExample-iWatch/AdjustExample-iWatch.xcodeproj/project.pbxproj @@ -7,6 +7,9 @@ objects = { /* Begin PBXBuildFile section */ + 07C8C7FB2B8F45B1006979A1 /* ADJPurchaseVerificationResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7F52B8F45B1006979A1 /* ADJPurchaseVerificationResult.m */; }; + 07C8C7FC2B8F45B1006979A1 /* ADJPurchaseVerificationHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7F82B8F45B1006979A1 /* ADJPurchaseVerificationHandler.m */; }; + 07C8C7FD2B8F45B1006979A1 /* ADJPurchase.m in Sources */ = {isa = PBXBuildFile; fileRef = 07C8C7F92B8F45B1006979A1 /* ADJPurchase.m */; }; 6F84514425B1B1DB0004C7C0 /* ADJThirdPartySharing.m in Sources */ = {isa = PBXBuildFile; fileRef = 6F84514325B1B1DB0004C7C0 /* ADJThirdPartySharing.m */; }; 6FAB78B62636DD9600773869 /* ADJLinkResolution.m in Sources */ = {isa = PBXBuildFile; fileRef = 6FAB78B52636DD9600773869 /* ADJLinkResolution.m */; }; 6FBEE91724E4215E00FEF3F1 /* ADJUrlStrategy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6FBEE91624E4215E00FEF3F1 /* ADJUrlStrategy.m */; }; @@ -107,6 +110,12 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 07C8C7F52B8F45B1006979A1 /* ADJPurchaseVerificationResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchaseVerificationResult.m; sourceTree = ""; }; + 07C8C7F62B8F45B1006979A1 /* ADJPurchaseVerificationHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchaseVerificationHandler.h; sourceTree = ""; }; + 07C8C7F72B8F45B1006979A1 /* ADJPurchaseVerificationResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchaseVerificationResult.h; sourceTree = ""; }; + 07C8C7F82B8F45B1006979A1 /* ADJPurchaseVerificationHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchaseVerificationHandler.m; sourceTree = ""; }; + 07C8C7F92B8F45B1006979A1 /* ADJPurchase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJPurchase.m; sourceTree = ""; }; + 07C8C7FA2B8F45B1006979A1 /* ADJPurchase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJPurchase.h; sourceTree = ""; }; 6F84514225B1B1DB0004C7C0 /* ADJThirdPartySharing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJThirdPartySharing.h; sourceTree = ""; }; 6F84514325B1B1DB0004C7C0 /* ADJThirdPartySharing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ADJThirdPartySharing.m; sourceTree = ""; }; 6FAB78B42636DD9600773869 /* ADJLinkResolution.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ADJLinkResolution.h; sourceTree = ""; }; @@ -303,6 +312,12 @@ 6FAB78B52636DD9600773869 /* ADJLinkResolution.m */, 9D49D173290FEC0F00042345 /* ADJSKAdNetwork.h */, 9D49D172290FEC0F00042345 /* ADJSKAdNetwork.m */, + 07C8C7FA2B8F45B1006979A1 /* ADJPurchase.h */, + 07C8C7F92B8F45B1006979A1 /* ADJPurchase.m */, + 07C8C7F62B8F45B1006979A1 /* ADJPurchaseVerificationHandler.h */, + 07C8C7F82B8F45B1006979A1 /* ADJPurchaseVerificationHandler.m */, + 07C8C7F72B8F45B1006979A1 /* ADJPurchaseVerificationResult.h */, + 07C8C7F52B8F45B1006979A1 /* ADJPurchaseVerificationResult.m */, ); name = Adjust; path = ../../../Adjust; @@ -563,6 +578,7 @@ 9DF7ACB71CB4FF6400D3591F /* AdjustLoggingHelper.m in Sources */, 9D449FAC1E6EE72000E7E80B /* ADJAttributionHandler.m in Sources */, 9D449FB81E6EE72000E7E80B /* ADJRequestHandler.m in Sources */, + 07C8C7FC2B8F45B1006979A1 /* ADJPurchaseVerificationHandler.m in Sources */, 9D449FB11E6EE72000E7E80B /* ADJEvent.m in Sources */, 9DF7AC191CB4FEDB00D3591F /* main.m in Sources */, 9D2F24172447DE3400B7CA90 /* ADJSubscription.m in Sources */, @@ -571,9 +587,11 @@ 9D449FBC1E6EE72000E7E80B /* ADJSessionParameters.m in Sources */, 9DF92DA52630EE8E000FC3FC /* ADJPackageParams.m in Sources */, 9D49D174290FEC0F00042345 /* ADJSKAdNetwork.m in Sources */, + 07C8C7FD2B8F45B1006979A1 /* ADJPurchase.m in Sources */, 6F84514425B1B1DB0004C7C0 /* ADJThirdPartySharing.m in Sources */, 9D449FB61E6EE72000E7E80B /* ADJPackageBuilder.m in Sources */, 9D449FBD1E6EE72000E7E80B /* ADJSessionSuccess.m in Sources */, + 07C8C7FB2B8F45B1006979A1 /* ADJPurchaseVerificationResult.m in Sources */, 6FBEE91724E4215E00FEF3F1 /* ADJUrlStrategy.m in Sources */, 9D449FB51E6EE72000E7E80B /* ADJLogger.m in Sources */, 9D449FB91E6EE72000E7E80B /* ADJResponseData.m in Sources */, From 5ab4feee5e6d64fa30bc9e12f2c904d6460dce14 Mon Sep 17 00:00:00 2001 From: Aditi3 Date: Wed, 28 Feb 2024 12:06:08 +0100 Subject: [PATCH 10/10] chore: minor comments cleanup --- .../AdjustExample-FbPixel/AppDelegate.m | 1 - .../AdjustExample-WebView/AppDelegate.m | 1 - .../AdjustExample-iWatch/AppDelegate.m | 7 ++++++- .../AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m | 1 - 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/AdjustExample-FbPixel/AdjustExample-FbPixel/AppDelegate.m b/examples/AdjustExample-FbPixel/AdjustExample-FbPixel/AppDelegate.m index 47cf39eb6..2bf44baf0 100644 --- a/examples/AdjustExample-FbPixel/AdjustExample-FbPixel/AppDelegate.m +++ b/examples/AdjustExample-FbPixel/AdjustExample-FbPixel/AppDelegate.m @@ -24,7 +24,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { NSLog(@"Scheme based deep link opened an app: %@", url); - // Pass deep link to Adjust in order to potentially reattribute user. // add your code below to handle deep link // (e.g., open deep link content) // url object contains the deep link diff --git a/examples/AdjustExample-WebView/AdjustExample-WebView/AppDelegate.m b/examples/AdjustExample-WebView/AdjustExample-WebView/AppDelegate.m index af10d44fb..3ac9c1f8d 100644 --- a/examples/AdjustExample-WebView/AdjustExample-WebView/AppDelegate.m +++ b/examples/AdjustExample-WebView/AdjustExample-WebView/AppDelegate.m @@ -31,7 +31,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { NSLog(@"Scheme based deep link opened an app: %@", url); - // Pass deep link to Adjust in order to potentially reattribute user. // add your code below to handle deep link // (e.g., open deep link content) // url object contains the deep link diff --git a/examples/AdjustExample-iWatch/AdjustExample-iWatch/AppDelegate.m b/examples/AdjustExample-iWatch/AdjustExample-iWatch/AppDelegate.m index ad86a6366..999882cb1 100644 --- a/examples/AdjustExample-iWatch/AdjustExample-iWatch/AppDelegate.m +++ b/examples/AdjustExample-iWatch/AdjustExample-iWatch/AppDelegate.m @@ -31,8 +31,13 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( } - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { + NSLog(@"Scheme based deep link opened an app: %@", url); + // add your code below to handle deep link + // (e.g., open deep link content) + // url object contains the deep link + + // Call the below method to send deep link to Adjust backend [Adjust appWillOpenUrl:url]; - return YES; } diff --git a/examples/AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m b/examples/AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m index dec896738..7b31e3a4c 100644 --- a/examples/AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m +++ b/examples/AdjustExample-tvOS/AdjustExample-tvOS/AppDelegate.m @@ -76,7 +76,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { NSLog(@"Scheme based deep link opened an app: %@", url); - // Pass deep link to Adjust in order to potentially reattribute user. // add your code below to handle deep link // (e.g., open deep link content) // url object contains the deep link