Skip to content
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.5.0"
s.version = "4.5.1"
s.summary = "This is the iOS SDK of adjust. You can read more about it at http://adjust.com."
s.homepage = "http://adjust.com"
s.license = { :type => 'MIT', :file => 'MIT-LICENSE' }
s.author = { "Christian Wellenbrock" => "welle@adjust.com" }
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.5.0" }
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.5.1" }
s.ios.deployment_target = '6.0'
s.tvos.deployment_target = '9.0'
s.framework = 'SystemConfiguration'
Expand Down
11 changes: 8 additions & 3 deletions Adjust/ADJActivityHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import "UIDevice+ADJAdditions.h"
#import "ADJAdjustFactory.h"
#import "ADJAttributionHandler.h"
#import "NSString+ADJAdditions.h"

static NSString * const kActivityStateFilename = @"AdjustIoActivityState";
static NSString * const kAttributionFilename = @"AdjustIoAttribution";
Expand Down Expand Up @@ -536,14 +537,18 @@ - (BOOL) readDeeplinkQueryString:(NSString *)queryString
NSString* key = [pairComponents objectAtIndex:0];
if (![key hasPrefix:kAdjustPrefix]) return NO;

NSString* keyDecoded = [key adjUrlDecode];

NSString* value = [pairComponents objectAtIndex:1];
if (value.length == 0) return NO;

NSString* keyWOutPrefix = [key substringFromIndex:kAdjustPrefix.length];
NSString* valueDecoded = [value adjUrlDecode];

NSString* keyWOutPrefix = [keyDecoded substringFromIndex:kAdjustPrefix.length];
if (keyWOutPrefix.length == 0) return NO;

if (![self trySetAttributionDeeplink:deeplinkAttribution withKey:keyWOutPrefix withValue:value]) {
[adjustDeepLinks setObject:value forKey:keyWOutPrefix];
if (![self trySetAttributionDeeplink:deeplinkAttribution withKey:keyWOutPrefix withValue:valueDecoded]) {
[adjustDeepLinks setObject:valueDecoded forKey:keyWOutPrefix];
}

return YES;
Expand Down
1 change: 1 addition & 0 deletions Adjust/ADJAdditions/NSString+ADJAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

- (NSString *)adjTrim;
- (NSString *)adjUrlEncode;
- (NSString *)adjUrlDecode;
- (NSString *)adjRemoveColons;

+ (NSString *)adjJoin:(NSString *)strings, ...;
Expand Down
7 changes: 7 additions & 0 deletions Adjust/ADJAdditions/NSString+ADJAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ -(NSString *)adjUrlEncode {
// [NSCharacterSet characterSetWithCharactersInString:@"!*'\"();:@&=+$,/?%#[]% "]];
}

-(NSString *)adjUrlDecode {
return (NSString *)CFBridgingRelease(CFURLCreateStringByReplacingPercentEscapes(
kCFAllocatorDefault,
(CFStringRef)self,
CFSTR("")));
}

- (NSString *)adjRemoveColons {
return [self stringByReplacingOccurrencesOfString:@":" withString:@""];
}
Expand Down
2 changes: 1 addition & 1 deletion Adjust/ADJUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <sys/xattr.h>

static NSString * const kBaseUrl = @"https://app.adjust.com";
static NSString * const kClientSdk = @"ios4.5.0";
static NSString * const kClientSdk = @"ios4.5.1";

static NSString * const kDateFormat = @"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'Z";
static NSDateFormatter *dateFormat;
Expand Down
2 changes: 1 addition & 1 deletion AdjustTests/ADJPackageFields.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ - (id) init {

// default values
self.appToken = @"123456789012";
self.clientSdk = @"ios4.5.0";
self.clientSdk = @"ios4.5.1";
self.suffix = @"";
self.environment = @"sandbox";

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ If you're using [CocoaPods][cocoapods] for `iOs` or `tvOS`, you can add the foll
`Podfile` and continue with [step 4](#step4):

```ruby
pod 'Adjust', :git => 'git://github.com/adjust/ios_sdk.git', :tag => 'v4.5.0'
pod 'Adjust', :git => 'git://github.com/adjust/ios_sdk.git', :tag => 'v4.5.1'
```

If you're using [Carthage][carthage], you can add following line to your `Cartfile`
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.5.0
4.5.1
2 changes: 1 addition & 1 deletion doc/migrate.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Migrate your adjust SDK for iOS to v4.5.0 from v3.4.0
## Migrate your adjust SDK for iOS to v4.5.1 from v3.4.0

### Initial setup

Expand Down