Skip to content

Commit

Permalink
Merge pull request #748 from adjust/v510
Browse files Browse the repository at this point in the history
Version 5.1.0
  • Loading branch information
uerceg authored Jan 28, 2025
2 parents 96e1b62 + c5ba230 commit 1ac4d02
Show file tree
Hide file tree
Showing 18 changed files with 245 additions and 229 deletions.
2 changes: 1 addition & 1 deletion Adjust.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "Adjust"
s.module_name = "AdjustSdk"
s.version = "5.0.2"
s.version = "5.1.0"
s.summary = "This is the iOS SDK of Adjust. You can read more about it at https://adjust.com."
s.homepage = "https://github.com/adjust/ios_sdk"
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
5 changes: 5 additions & 0 deletions Adjust/ADJAttribution.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
*/
@property (nonatomic, copy, nullable) NSString *costCurrency;

/**
* @brief All attribution fields from backend's attribution JSON response.
*/
@property (nonatomic, strong, nullable) NSDictionary *jsonResponse;

/**
* @brief Make attribution object.
*
Expand Down
7 changes: 7 additions & 0 deletions Adjust/ADJAttribution.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ - (id)initWithJsonDict:(NSDictionary *)jsonDict {
self.costType = [jsonDict objectForKey:@"cost_type"];
self.costAmount = [jsonDict objectForKey:@"cost_amount"];
self.costCurrency = [jsonDict objectForKey:@"cost_currency"];
self.jsonResponse = jsonDict;

return self;
}
Expand Down Expand Up @@ -106,6 +107,9 @@ - (NSDictionary *)dictionary {
if (self.costCurrency != nil) {
[responseDataDic setObject:self.costCurrency forKey:@"costCurrency"];
}
if (self.jsonResponse != nil) {
[responseDataDic setObject:self.jsonResponse forKey:@"jsonResponse"];
}

return responseDataDic;
}
Expand Down Expand Up @@ -151,6 +155,7 @@ - (id)copyWithZone:(NSZone *)zone {
copy.costType = [self.costType copyWithZone:zone];
copy.costAmount = [self.costAmount copyWithZone:zone];
copy.costCurrency = [self.costCurrency copyWithZone:zone];
copy.jsonResponse = [self.jsonResponse copyWithZone:zone];
}

return copy;
Expand All @@ -175,6 +180,7 @@ - (id)initWithCoder:(NSCoder *)decoder {
self.costType = [decoder decodeObjectForKey:@"costType"];
self.costAmount = [decoder decodeObjectForKey:@"costAmount"];
self.costCurrency = [decoder decodeObjectForKey:@"costCurrency"];
self.jsonResponse = [decoder decodeObjectForKey:@"jsonResponse"];

return self;
}
Expand All @@ -190,6 +196,7 @@ - (void)encodeWithCoder:(NSCoder *)encoder {
[encoder encodeObject:self.costType forKey:@"costType"];
[encoder encodeObject:self.costAmount forKey:@"costAmount"];
[encoder encodeObject:self.costCurrency forKey:@"costCurrency"];
[encoder encodeObject:self.jsonResponse forKey:@"jsonResponse"];
}

@end
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
//
// V5.0.2
// V5.1.0
// Created by Christian Wellenbrock (@wellle) on 23rd July 2013.
// Copyright (c) 2012-Present Adjust GmbH. All rights reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion Adjust/Internal/ADJAttributionHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ - (void)checkAttributionI:(ADJAttributionHandler*)selfI

[selfI.activityHandler setAskingAttribution:NO];

NSDictionary * jsonAttribution = [responseData.jsonResponse objectForKey:@"attribution"];
NSDictionary *jsonAttribution = [responseData.jsonResponse objectForKey:@"attribution"];
responseData.attribution = [[ADJAttribution alloc] initWithJsonDict:jsonAttribution];
}

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

static NSString * const kClientSdk = @"ios5.0.2";
static NSString * const kClientSdk = @"ios5.1.0";
static NSString * const kDeeplinkParam = @"deep_link=";
static NSString * const kSchemeDelimiter = @"://";
static NSString * const kDefaultScheme = @"AdjustUniversalScheme";
Expand Down
Loading

0 comments on commit 1ac4d02

Please sign in to comment.