Skip to content

Commit

Permalink
Merge pull request #676 from adjust/v4342
Browse files Browse the repository at this point in the history
Version 4.34.2
  • Loading branch information
uerceg authored Sep 6, 2023
2 parents f129fbc + 41294ac commit 3a19868
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 16 deletions.
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.34.1"
s.version = "4.34.2"
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" => "[email protected]" }
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.34.1" }
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.34.2" }
s.ios.deployment_target = '9.0'
s.tvos.deployment_target = '9.0'
s.framework = 'SystemConfiguration'
Expand Down
14 changes: 13 additions & 1 deletion Adjust/ADJActivityHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ - (id)initWithConfig:(ADJConfig *)adjustConfig
[ADJAdjustFactory.logger warn:@"AdServices info reading has been switched off"];
}

// check if ATT consent delay has been configured
if (adjustConfig.attConsentWaitingInterval > 0) {
[ADJAdjustFactory.logger info:@"ATT consent waiting interval has been configured to %d",
adjustConfig.attConsentWaitingInterval];
}

self.adjustConfig = adjustConfig;
self.savedPreLaunch = savedPreLaunch;
self.adjustDelegate = adjustConfig.delegate;
Expand Down Expand Up @@ -3006,6 +3012,10 @@ - (BOOL)updateAttStatus:(int)readAttStatus {

- (void)setAppInActiveState:(BOOL)activeState {
dispatch_async(self.waitingForAttQueue, ^{
// skip in case active state didn't change
if (self.activeState == activeState) {
return;
}
self.activeState = activeState;
if (self.activeState) {
[self startWaitingForAttStatus];
Expand Down Expand Up @@ -3058,6 +3068,7 @@ - (BOOL)shouldWaitForAttStatus {

// We have to set the configured waiting timeout and start ATT status monitoring logic.
[ADJUserDefaults setAttWaitingRemainingSeconds:timeoutSec];

return YES;
}

Expand All @@ -3074,14 +3085,15 @@ - (void)checkAttStatusPeriodic {
// check current ATT status
int attStatus = [ADJUtil attStatus];
if (attStatus != 0) {
[self.activityHandler.logger info:@"ATT consent status udated to: %d", attStatus];
[ADJUserDefaults removeAttWaitingRemainingSeconds];
[self.activityHandler resumeActivityFromWaitingForAttStatus];
return;
}

NSUInteger seconds = [ADJUserDefaults getAttWaitingRemainingSeconds];
if (seconds == 0) {
[self.activityHandler.logger warn:@"ATT status waiting timeout elapsed - NO ATT STATUS FOUND"];
[self.activityHandler.logger warn:@"ATT status waiting timeout elapsed without receiving any consent status update"];
[self.activityHandler resumeActivityFromWaitingForAttStatus];
return;
}
Expand Down
5 changes: 1 addition & 4 deletions Adjust/ADJPackageHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,8 @@ - (void)updatePackagesI:(ADJPackageHandler *)selfI
}

- (void)updatePackagesWithIdfaAndAttStatusI:(ADJPackageHandler *)selfI {

int attStatus = [ADJUtil attStatus];
[selfI.logger debug:@"Updating package handler queue"];
[selfI.logger verbose:@"ATT Status %ld", (long)attStatus];

[selfI.logger debug:@"Updating package queue with idfa and att_status: %d", (long)attStatus];
// create package queue copy for new state of array
NSMutableArray *packageQueueCopy = [NSMutableArray array];

Expand Down
1 change: 1 addition & 0 deletions Adjust/ADJPurchaseVerificationHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ - (void)sendNextPurchaseVerificationPackageI:(ADJPurchaseVerificationHandler *)s

- (void)updatePackagesWithIdfaAndAttStatusI:(ADJPurchaseVerificationHandler *)selfI {
int attStatus = [ADJUtil attStatus];
[selfI.logger debug:@"Updating purchase_verification queue with idfa and att_status: %d", attStatus];
for (ADJActivityPackage *activityPackage in selfI.packageQueue) {
[ADJPackageBuilder parameters:activityPackage.parameters
setInt:attStatus
Expand Down
2 changes: 1 addition & 1 deletion Adjust/ADJSdkClickHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ - (void)sendNextSdkClickI:(ADJSdkClickHandler *)selfI {
}

- (void)updatePackagesWithIdfaAndAttStatusI:(ADJSdkClickHandler *)selfI {

int attStatus = [ADJUtil attStatus];
[selfI.logger debug:@"Updating sdk_click queue with idfa and att_status: %d", attStatus];
for (ADJActivityPackage *activityPackage in selfI.packageQueue) {
[ADJPackageBuilder parameters:activityPackage.parameters
setInt:attStatus
Expand Down
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.34.1";
static NSString * const kClientSdk = @"ios4.34.2";
static NSString * const kDeeplinkParam = @"deep_link=";
static NSString * const kSchemeDelimiter = @"://";
static NSString * const kDefaultScheme = @"AdjustUniversalScheme";
Expand Down
2 changes: 1 addition & 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.34.1
// V4.34.2
// Created by Christian Wellenbrock (@wellle) on 23rd July 2013.
// Copyright (c) 2012-2021 Adjust GmbH. All rights reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion AdjustBridge/AdjustBridgeRegister.m
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ + (NSString *)adjust_js {
if (this.sdkPrefix) {
return this.sdkPrefix;
} else {
return 'web-bridge4.34.1';
return 'web-bridge4.34.2';
}
},
setTestOptions: function(testOptions) {
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
### Version 4.34.2 (6th September 2023)

#### Added
- Added more logging around ATT delay timer feature to indicate that it's activated.

#### Fixed
- Fixed issue where subsequent calls to active state callback would make ATT delay timer elapse sooner.

---

### Version 4.34.1 (18th August 2023)
#### Fixed
- Fixed `ADJPurchase.h` file not found issue via SPM installation (https://github.com/adjust/ios_sdk/issues/673).
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.34.1
4.34.2
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.34.1):
- Adjust/Core (= 4.34.1)
- Adjust/Core (4.34.1)
- Adjust (4.34.2):
- Adjust/Core (= 4.34.2)
- Adjust/Core (4.34.2)

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

SPEC CHECKSUMS:
Adjust: 1410b6ccbce29c91b8e88064186a7b103244fa43
Adjust: e633c0cb917deeb2b00ac45bf9a4f34e6ece9477

PODFILE CHECKSUM: 4c79da456db9adb90cdd42adc7f721c7bb6490cd

Expand Down

0 comments on commit 3a19868

Please sign in to comment.