Skip to content

Commit 5550143

Browse files
committed
Merge pull request #145 from adjust/criteo_deeplink
Criteo deeplink
2 parents 178400c + 1cf8be9 commit 5550143

File tree

9 files changed

+42
-7
lines changed

9 files changed

+42
-7
lines changed

Adjust.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Pod::Spec.new do |s|
22
s.name = "Adjust"
3-
s.version = "4.4.3"
3+
s.version = "4.4.4"
44
s.summary = "This is the iOS SDK of adjust. You can read more about it at http://adjust.com."
55
s.homepage = "http://adjust.com"
66
s.license = { :type => 'MIT', :file => 'MIT-LICENSE' }
77
s.author = { "Christian Wellenbrock" => "[email protected]" }
8-
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.4.3" }
8+
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.4.4" }
99
s.ios.deployment_target = '5.0'
1010
s.tvos.deployment_target = '9.0'
1111
s.framework = 'SystemConfiguration'

Adjust/ADJUtil.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <sys/xattr.h>
1717

1818
static NSString * const kBaseUrl = @"https://app.adjust.com";
19-
static NSString * const kClientSdk = @"ios4.4.3";
19+
static NSString * const kClientSdk = @"ios4.4.4";
2020

2121
static NSString * const kDateFormat = @"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'Z";
2222
static NSDateFormatter *dateFormat;

AdjustTests/ADJPackageFields.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ - (id) init {
1616

1717
// default values
1818
self.appToken = @"123456789012";
19-
self.clientSdk = @"ios4.4.3";
19+
self.clientSdk = @"ios4.4.4";
2020
self.suffix = @"";
2121
self.environment = @"sandbox";
2222

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If you're using [CocoaPods][cocoapods] for `iOs` or `tvOS`, you can add the foll
1818
`Podfile` and continue with [step 4](#step4):
1919

2020
```ruby
21-
pod 'Adjust', :git => 'git://github.com/adjust/ios_sdk.git', :tag => 'v4.4.3'
21+
pod 'Adjust', :git => 'git://github.com/adjust/ios_sdk.git', :tag => 'v4.4.4'
2222
```
2323

2424
### 1. Get the SDK

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.4.3
1+
4.4.4

doc/criteo_plugin.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,23 @@ The search dates can be removed by setting the `injectPartnerIdIntoCriteoEvent`
168168
169169
[ADJCriteo injectPartnerIdIntoCriteoEvents:@"{criteoPartnerId}"];
170170
```
171+
172+
### Send deeplink
173+
174+
In the Project Navigator open the source file your Application Delegate. Find or add the method openURL and add the following call to adjust:
175+
176+
```objc
177+
#import "ADJCriteo.h"
178+
179+
- (BOOL) application:(UIApplication *)application openURL:(NSURL *)url
180+
sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
181+
{
182+
ADJEvent *event = [ADJEvent eventWithEventToken:@"{deeplinkEventToken}"];
183+
184+
[ADJCriteo injectDeeplinkIntoEvent:event url:url];
185+
186+
[Adjust trackEvent:event];
187+
188+
//...
189+
}
190+
```

doc/migrate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Migrate your adjust SDK for iOS to v4.4.3 from v3.4.0
1+
## Migrate your adjust SDK for iOS to v4.4.4 from v3.4.0
22

33
### Initial setup
44

plugin/Criteo/ADJCriteo.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
uiData3:(NSUInteger)uiData3
6666
customerId:(NSString *)customerId;
6767

68+
+ (void)injectDeeplinkIntoEvent:(ADJEvent *)event
69+
url:(NSURL *)url;
70+
6871
+ (void)injectHashedEmailIntoCriteoEvents:(NSString *)hashEmail;
6972

7073
+ (void)injectViewSearchDatesIntoCriteoEvents:(NSString *)checkInDate

plugin/Criteo/ADJCriteo.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,18 @@ + (void)injectCustomEvent2IntoEvent:(ADJEvent *)event
162162
[ADJCriteo injectOptionalParams:event];
163163
}
164164

165+
+ (void)injectDeeplinkIntoEvent:(ADJEvent *)event
166+
url:(NSURL *)url
167+
{
168+
if (url == nil) {
169+
return;
170+
}
171+
172+
[event addPartnerParameter:@"criteo_deeplink" value:[url absoluteString]];
173+
174+
[ADJCriteo injectOptionalParams:event];
175+
}
176+
165177
+ (void)injectHashedEmailIntoCriteoEvents:(NSString *)hashEmail
166178
{
167179
hashEmailInternal = hashEmail;

0 commit comments

Comments
 (0)