File tree Expand file tree Collapse file tree 9 files changed +43
-25
lines changed
examples/AdjustExample-Swift Expand file tree Collapse file tree 9 files changed +43
-25
lines changed Original file line number Diff line number Diff line change 11Pod ::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'
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 3535static NSRegularExpression *shortUniversalLinkRegex = nil ;
3636static NSRegularExpression *excludedDeeplinkRegex = nil ;
3737
38- static NSString * const kClientSdk = @" ios4.37.0 " ;
38+ static NSString * const kClientSdk = @" ios4.37.1 " ;
3939static NSString * const kDeeplinkParam = @" deep_link=" ;
4040static NSString * const kSchemeDelimiter = @" ://" ;
4141static NSString * const kDefaultScheme = @" AdjustUniversalScheme" ;
Original file line number Diff line number Diff line change 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;
5858extern NSString * __nonnull const ADJAdRevenueSourcePublisher;
5959extern NSString * __nonnull const ADJAdRevenueSourceTopOn;
6060extern NSString * __nonnull const ADJAdRevenueSourceADX;
61+ extern NSString * __nonnull const ADJAdRevenueSourceTradplus;
6162
6263/* *
6364 * Constants for country app's URL strategies.
Original file line number Diff line number Diff line change 3232NSString * const ADJAdRevenueSourcePublisher = @" publisher_sdk" ;
3333NSString * const ADJAdRevenueSourceTopOn = @" topon_sdk" ;
3434NSString * const ADJAdRevenueSourceADX = @" adx_sdk" ;
35+ NSString * const ADJAdRevenueSourceTradplus = @" tradplus_sdk" ;
3536
3637NSString * const ADJUrlStrategyIndia = @" UrlStrategyIndia" ;
3738NSString * const ADJUrlStrategyChina = @" UrlStrategyChina" ;
Original file line number Diff line number Diff 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) {
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 1- 4.37.0
1+ 4.37.1
Original file line number Diff line number Diff line change 11PODS:
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
66DEPENDENCIES:
77 - Adjust (from `../../`)
@@ -11,7 +11,7 @@ EXTERNAL SOURCES:
1111 :path: "../../"
1212
1313SPEC CHECKSUMS:
14- Adjust: 86a6935688251ca6cea371f9b284578ccf3d981b
14+ Adjust: de140fb7f466ad6884ffc2bca2f9a3afbd285f42
1515
1616PODFILE CHECKSUM: 4c79da456db9adb90cdd42adc7f721c7bb6490cd
1717
You can’t perform that action at this time.
0 commit comments