Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 4.37.1 #697

Merged
merged 7 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Adjust.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Pod::Spec.new do |s|
s.name = "Adjust"
s.version = "4.37.0"
s.version = "4.37.1"
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.0" }
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.37.1" }
s.ios.deployment_target = '9.0'
s.tvos.deployment_target = '9.0'
s.framework = 'SystemConfiguration'
Expand Down
37 changes: 22 additions & 15 deletions Adjust/ADJPackageBuilder.m
Original file line number Diff line number Diff line change
Expand Up @@ -1385,23 +1385,30 @@ + (void)addIdfaToParameters:(NSMutableDictionary * _Nullable)parameters
return;
}

// read once && IDFA not cached
if (adjConfig.readDeviceInfoOnceEnabled && packageParams.idfaCached != nil) {
[ADJPackageBuilder parameters:parameters setString:packageParams.idfaCached forKey:@"idfa"];
return;
}
__block NSString *idfa = nil;
[ADJUtil launchSynchronisedWithObject:[ADJPackageBuilder class] block:^{
// read once && IDFA not cached
if (adjConfig.readDeviceInfoOnceEnabled && packageParams.idfaCached != nil) {
idfa = packageParams.idfaCached;
} else {
// read IDFA
idfa = [ADJUtil idfa];
if (idfa == nil ||
idfa.length == 0 ||
[idfa isEqualToString:@"00000000-0000-0000-0000-000000000000"])
{
idfa = nil;
} else {
// cache IDFA
packageParams.idfaCached = idfa;
}
}
}];

// read IDFA
NSString *idfa = [ADJUtil idfa];
if (idfa == nil ||
idfa.length == 0 ||
[idfa isEqualToString:@"00000000-0000-0000-0000-000000000000"]) {
return;
if (idfa != nil) {
// add IDFA to payload
[ADJPackageBuilder parameters:parameters setString:idfa forKey:@"idfa"];
}
// cache IDFA
packageParams.idfaCached = idfa;
// add IDFA to payload
[ADJPackageBuilder parameters:parameters setString:idfa forKey:@"idfa"];
}

@end
2 changes: 1 addition & 1 deletion Adjust/ADJUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
static NSRegularExpression *shortUniversalLinkRegex = nil;
static NSRegularExpression *excludedDeeplinkRegex = nil;

static NSString * const kClientSdk = @"ios4.37.0";
static NSString * const kClientSdk = @"ios4.37.1";
static NSString * const kDeeplinkParam = @"deep_link=";
static NSString * const kSchemeDelimiter = @"://";
static NSString * const kDefaultScheme = @"AdjustUniversalScheme";
Expand Down
3 changes: 2 additions & 1 deletion Adjust/Adjust.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Adjust.h
// Adjust SDK
//
// V4.37.0
// V4.37.1
// Created by Christian Wellenbrock (@wellle) on 23rd July 2013.
// Copyright (c) 2012-2021 Adjust GmbH. All rights reserved.
//
Expand Down Expand Up @@ -58,6 +58,7 @@ extern NSString * __nonnull const ADJAdRevenueSourceHeliumChartboost;
extern NSString * __nonnull const ADJAdRevenueSourcePublisher;
extern NSString * __nonnull const ADJAdRevenueSourceTopOn;
extern NSString * __nonnull const ADJAdRevenueSourceADX;
extern NSString * __nonnull const ADJAdRevenueSourceTradplus;

/**
* Constants for country app's URL strategies.
Expand Down
1 change: 1 addition & 0 deletions Adjust/Adjust.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
NSString * const ADJAdRevenueSourcePublisher = @"publisher_sdk";
NSString * const ADJAdRevenueSourceTopOn = @"topon_sdk";
NSString * const ADJAdRevenueSourceADX = @"adx_sdk";
NSString * const ADJAdRevenueSourceTradplus = @"tradplus_sdk";

NSString * const ADJUrlStrategyIndia = @"UrlStrategyIndia";
NSString * const ADJUrlStrategyChina = @"UrlStrategyChina";
Expand Down
2 changes: 1 addition & 1 deletion AdjustBridge/AdjustBridgeRegister.m
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ + (NSString *)adjust_js {
if (this.sdkPrefix) {
return this.sdkPrefix;
} else {
return 'web-bridge4.37.0';
return 'web-bridge4.37.1';
}
},
setTestOptions: function(testOptions) {
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
### Version 4.37.1 (15th February 2024)
#### Added
- Added support for `TradPlus` ad revenue tracking.

#### Fixed
- Fixed occasional crashes caused by not synchronized access to cached IDFA value (https://github.com/adjust/ios_sdk/issues/696).

---

### Version 4.37.0 (21st December 2023)
#### Added
- 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.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.37.0
4.37.1
8 changes: 4 additions & 4 deletions examples/AdjustExample-Swift/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PODS:
- Adjust (4.37.0):
- Adjust/Core (= 4.37.0)
- Adjust/Core (4.37.0)
- Adjust (4.37.1):
- Adjust/Core (= 4.37.1)
- Adjust/Core (4.37.1)

DEPENDENCIES:
- Adjust (from `../../`)
Expand All @@ -11,7 +11,7 @@ EXTERNAL SOURCES:
:path: "../../"

SPEC CHECKSUMS:
Adjust: 86a6935688251ca6cea371f9b284578ccf3d981b
Adjust: de140fb7f466ad6884ffc2bca2f9a3afbd285f42

PODFILE CHECKSUM: 4c79da456db9adb90cdd42adc7f721c7bb6490cd

Expand Down