Skip to content

Commit a32b766

Browse files
authored
Merge pull request #751 from adjust/v511
Version 5.1.1
2 parents 1ac4d02 + 44f544b commit a32b766

10 files changed

+53
-16
lines changed

Adjust.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "Adjust"
33
s.module_name = "AdjustSdk"
4-
s.version = "5.1.0"
4+
s.version = "5.1.1"
55
s.summary = "This is the iOS SDK of Adjust. You can read more about it at https://adjust.com."
66
s.homepage = "https://github.com/adjust/ios_sdk"
77
s.license = { :type => 'MIT', :file => 'LICENSE' }

Adjust/Adjust.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Adjust.h
33
// Adjust SDK
44
//
5-
// V5.1.0
5+
// V5.1.1
66
// Created by Christian Wellenbrock (@wellle) on 23rd July 2013.
77
// Copyright (c) 2012-Present Adjust GmbH. All rights reserved.
88
//

Adjust/Internal/ADJAttributionHandler.m

+10-2
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,19 @@ - (void)getAttribution {
9999
}
100100

101101
- (void)pauseSending {
102-
self.paused = YES;
102+
[ADJUtil launchInQueue:self.internalQueue
103+
selfInject:self
104+
block:^(ADJAttributionHandler* selfI) {
105+
selfI.paused = YES;
106+
}];
103107
}
104108

105109
- (void)resumeSending {
106-
self.paused = NO;
110+
[ADJUtil launchInQueue:self.internalQueue
111+
selfInject:self
112+
block:^(ADJAttributionHandler* selfI) {
113+
selfI.paused = NO;
114+
}];
107115
}
108116

109117
#pragma mark - internal

Adjust/Internal/ADJPackageHandler.m

+10-2
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,19 @@ - (NSTimeInterval)retryPackageUsingBackoffWithResponse:(ADJResponseData *)respon
173173
}
174174

175175
- (void)pauseSending {
176-
self.paused = YES;
176+
[ADJUtil launchInQueue:self.internalQueue
177+
selfInject:self
178+
block:^(ADJPackageHandler* selfI) {
179+
selfI.paused = YES;
180+
}];
177181
}
178182

179183
- (void)resumeSending {
180-
self.paused = NO;
184+
[ADJUtil launchInQueue:self.internalQueue
185+
selfInject:self
186+
block:^(ADJPackageHandler* selfI) {
187+
selfI.paused = NO;
188+
}];
181189
}
182190

183191
- (void)updatePackagesWithAttStatus:(int)attStatus {

Adjust/Internal/ADJPurchaseVerificationHandler.m

+11-3
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,20 @@ - (id)initWithActivityHandler:(id<ADJActivityHandler>)activityHandler
6363
}
6464

6565
- (void)pauseSending {
66-
self.paused = YES;
66+
[ADJUtil launchInQueue:self.internalQueue
67+
selfInject:self
68+
block:^(ADJPurchaseVerificationHandler *selfI) {
69+
selfI.paused = YES;
70+
}];
6771
}
6872

6973
- (void)resumeSending {
70-
self.paused = NO;
71-
[self sendNextPurchaseVerificationPackage];
74+
[ADJUtil launchInQueue:self.internalQueue
75+
selfInject:self
76+
block:^(ADJPurchaseVerificationHandler *selfI) {
77+
selfI.paused = NO;
78+
[selfI sendNextPurchaseVerificationPackage];
79+
}];
7280
}
7381

7482
- (void)sendPurchaseVerificationPackage:(ADJActivityPackage *)purchaseVerificationPackage {

Adjust/Internal/ADJSdkClickHandler.m

+11-3
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,20 @@ - (id)initWithActivityHandler:(id<ADJActivityHandler>)activityHandler
6666
}
6767

6868
- (void)pauseSending {
69-
self.paused = YES;
69+
[ADJUtil launchInQueue:self.internalQueue
70+
selfInject:self
71+
block:^(ADJSdkClickHandler *selfI) {
72+
selfI.paused = YES;
73+
}];
7074
}
7175

7276
- (void)resumeSending {
73-
self.paused = NO;
74-
[self sendNextSdkClick];
77+
[ADJUtil launchInQueue:self.internalQueue
78+
selfInject:self
79+
block:^(ADJSdkClickHandler *selfI) {
80+
selfI.paused = NO;
81+
[selfI sendNextSdkClick];
82+
}];
7583
}
7684

7785
- (void)sendSdkClick:(ADJActivityPackage *)sdkClickPackage {

Adjust/Internal/ADJUtil.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
static NSRegularExpression *goLinkUniversalLinkRegex = nil;
3232
static NSRegularExpression *excludedDeeplinkRegex = nil;
3333

34-
static NSString * const kClientSdk = @"ios5.1.0";
34+
static NSString * const kClientSdk = @"ios5.1.1";
3535
static NSString * const kDeeplinkParam = @"deep_link=";
3636
static NSString * const kSchemeDelimiter = @"://";
3737
static NSString * const kDefaultScheme = @"AdjustUniversalScheme";

AdjustBridge/AdjustBridgeRegister.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function canSend(okCheck, errReason) {
176176
if (this.sdkPrefix) {
177177
return this.sdkPrefix;
178178
} else {
179-
return 'web-bridge5.1.0';
179+
return 'web-bridge5.1.1';
180180
}
181181
},
182182

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
### Version 5.1.0 (28th January 2025)
1+
### Version 5.1.1 (25th February 2025)
2+
#### Changed
3+
- Syncrhonized resuming and pausing in all the handlers (internal changes).
24

5+
---
6+
7+
### Version 5.1.0 (28th January 2025)
38
#### Added
49
- Added `jsonResponse` field (`NSDictionary`) to `ADJAttribution` where every key-value pair sent by the backend as part of the attribution response can be found. Equivalently, one can also find `jsonResponse` map being part of the attribution instance in the web bridge API.
510

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.1.0
1+
5.1.1

0 commit comments

Comments
 (0)