Skip to content

Commit a6fb83b

Browse files
authored
Merge pull request #697 from adjust/v4371
Version 4.37.1
2 parents f7a0ad4 + ebf7a49 commit a6fb83b

File tree

9 files changed

+43
-25
lines changed

9 files changed

+43
-25
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.37.0"
3+
s.version = "4.37.1"
44
s.summary = "This is the iOS SDK of adjust. You can read more about it at http://adjust.com."
55
s.homepage = "https://github.com/adjust/ios_sdk"
66
s.license = { :type => 'MIT', :file => 'MIT-LICENSE' }
77
s.author = { "Adjust" => "[email protected]" }
8-
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.37.0" }
8+
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.37.1" }
99
s.ios.deployment_target = '9.0'
1010
s.tvos.deployment_target = '9.0'
1111
s.framework = 'SystemConfiguration'

Adjust/ADJPackageBuilder.m

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,23 +1385,30 @@ + (void)addIdfaToParameters:(NSMutableDictionary * _Nullable)parameters
13851385
return;
13861386
}
13871387

1388-
// read once && IDFA not cached
1389-
if (adjConfig.readDeviceInfoOnceEnabled && packageParams.idfaCached != nil) {
1390-
[ADJPackageBuilder parameters:parameters setString:packageParams.idfaCached forKey:@"idfa"];
1391-
return;
1392-
}
1388+
__block NSString *idfa = nil;
1389+
[ADJUtil launchSynchronisedWithObject:[ADJPackageBuilder class] block:^{
1390+
// read once && IDFA not cached
1391+
if (adjConfig.readDeviceInfoOnceEnabled && packageParams.idfaCached != nil) {
1392+
idfa = packageParams.idfaCached;
1393+
} else {
1394+
// read IDFA
1395+
idfa = [ADJUtil idfa];
1396+
if (idfa == nil ||
1397+
idfa.length == 0 ||
1398+
[idfa isEqualToString:@"00000000-0000-0000-0000-000000000000"])
1399+
{
1400+
idfa = nil;
1401+
} else {
1402+
// cache IDFA
1403+
packageParams.idfaCached = idfa;
1404+
}
1405+
}
1406+
}];
13931407

1394-
// read IDFA
1395-
NSString *idfa = [ADJUtil idfa];
1396-
if (idfa == nil ||
1397-
idfa.length == 0 ||
1398-
[idfa isEqualToString:@"00000000-0000-0000-0000-000000000000"]) {
1399-
return;
1408+
if (idfa != nil) {
1409+
// add IDFA to payload
1410+
[ADJPackageBuilder parameters:parameters setString:idfa forKey:@"idfa"];
14001411
}
1401-
// cache IDFA
1402-
packageParams.idfaCached = idfa;
1403-
// add IDFA to payload
1404-
[ADJPackageBuilder parameters:parameters setString:idfa forKey:@"idfa"];
14051412
}
14061413

14071414
@end

Adjust/ADJUtil.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
static NSRegularExpression *shortUniversalLinkRegex = nil;
3636
static NSRegularExpression *excludedDeeplinkRegex = nil;
3737

38-
static NSString * const kClientSdk = @"ios4.37.0";
38+
static NSString * const kClientSdk = @"ios4.37.1";
3939
static NSString * const kDeeplinkParam = @"deep_link=";
4040
static NSString * const kSchemeDelimiter = @"://";
4141
static NSString * const kDefaultScheme = @"AdjustUniversalScheme";

Adjust/Adjust.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Adjust.h
33
// Adjust SDK
44
//
5-
// V4.37.0
5+
// V4.37.1
66
// Created by Christian Wellenbrock (@wellle) on 23rd July 2013.
77
// Copyright (c) 2012-2021 Adjust GmbH. All rights reserved.
88
//
@@ -58,6 +58,7 @@ extern NSString * __nonnull const ADJAdRevenueSourceHeliumChartboost;
5858
extern NSString * __nonnull const ADJAdRevenueSourcePublisher;
5959
extern NSString * __nonnull const ADJAdRevenueSourceTopOn;
6060
extern NSString * __nonnull const ADJAdRevenueSourceADX;
61+
extern NSString * __nonnull const ADJAdRevenueSourceTradplus;
6162

6263
/**
6364
* Constants for country app's URL strategies.

Adjust/Adjust.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
NSString * const ADJAdRevenueSourcePublisher = @"publisher_sdk";
3333
NSString * const ADJAdRevenueSourceTopOn = @"topon_sdk";
3434
NSString * const ADJAdRevenueSourceADX = @"adx_sdk";
35+
NSString * const ADJAdRevenueSourceTradplus = @"tradplus_sdk";
3536

3637
NSString * const ADJUrlStrategyIndia = @"UrlStrategyIndia";
3738
NSString * const ADJUrlStrategyChina = @"UrlStrategyChina";

AdjustBridge/AdjustBridgeRegister.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ + (NSString *)adjust_js {
280280
if (this.sdkPrefix) {
281281
return this.sdkPrefix;
282282
} else {
283-
return 'web-bridge4.37.0';
283+
return 'web-bridge4.37.1';
284284
}
285285
},
286286
setTestOptions: function(testOptions) {

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
### Version 4.37.1 (15th February 2024)
2+
#### Added
3+
- Added support for `TradPlus` ad revenue tracking.
4+
5+
#### Fixed
6+
- Fixed occasional crashes caused by not synchronized access to cached IDFA value (https://github.com/adjust/ios_sdk/issues/696).
7+
8+
---
9+
110
### Version 4.37.0 (21st December 2023)
211
#### Added
312
- Added ability to instruct to SDK to read device IDs just once upon initialization. You can set this by calling `setReadDeviceInfoOnceEnabled` method of the `ADJConfig` instance.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.37.0
1+
4.37.1

examples/AdjustExample-Swift/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PODS:
2-
- Adjust (4.37.0):
3-
- Adjust/Core (= 4.37.0)
4-
- Adjust/Core (4.37.0)
2+
- Adjust (4.37.1):
3+
- Adjust/Core (= 4.37.1)
4+
- Adjust/Core (4.37.1)
55

66
DEPENDENCIES:
77
- Adjust (from `../../`)
@@ -11,7 +11,7 @@ EXTERNAL SOURCES:
1111
:path: "../../"
1212

1313
SPEC CHECKSUMS:
14-
Adjust: 86a6935688251ca6cea371f9b284578ccf3d981b
14+
Adjust: de140fb7f466ad6884ffc2bca2f9a3afbd285f42
1515

1616
PODFILE CHECKSUM: 4c79da456db9adb90cdd42adc7f721c7bb6490cd
1717

0 commit comments

Comments
 (0)