Skip to content

Commit 47f7cb1

Browse files
committed
Merge pull request #157 from adjust/device_ids
Device ids
2 parents aef1d3c + 30f31fe commit 47f7cb1

File tree

8 files changed

+18
-7
lines changed

8 files changed

+18
-7
lines changed

Adjust.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Pod::Spec.new do |s|
22
s.name = "Adjust"
3-
s.version = "4.5.1"
3+
s.version = "4.5.2"
44
s.summary = "This is the iOS SDK of adjust. You can read more about it at http://adjust.com."
55
s.homepage = "http://adjust.com"
66
s.license = { :type => 'MIT', :file => 'MIT-LICENSE' }
77
s.author = { "Christian Wellenbrock" => "[email protected]" }
8-
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.5.1" }
8+
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.5.2" }
99
s.ios.deployment_target = '6.0'
1010
s.tvos.deployment_target = '9.0'
1111
s.framework = 'SystemConfiguration'

Adjust/ADJUtil.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <sys/xattr.h>
1717

1818
static NSString * const kBaseUrl = @"https://app.adjust.com";
19-
static NSString * const kClientSdk = @"ios4.5.1";
19+
static NSString * const kClientSdk = @"ios4.5.2";
2020

2121
static NSString * const kDateFormat = @"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'Z";
2222
static NSDateFormatter *dateFormat;

Adjust/Adjust.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ extern NSString * const ADJEnvironmentProduction;
9595
*/
9696
+ (void)setOfflineMode:(BOOL)enabled;
9797

98+
+ (NSString*)idfa;
99+
98100
/**
99101
* Obtain singleton Adjust object
100102
*/

Adjust/Adjust.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#import "ADJActivityHandler.h"
1111
#import "ADJAdjustFactory.h"
1212
#import "ADJLogger.h"
13+
#import "UIDevice+ADJAdditions.h"
1314

1415
#if !__has_feature(objc_arc)
1516
#error Adjust requires ARC
@@ -64,6 +65,10 @@ + (void)setOfflineMode:(BOOL)enabled {
6465
[[Adjust getInstance] setOfflineMode:enabled];
6566
}
6667

68+
+ (NSString*)idfa {
69+
return [[UIDevice currentDevice] adjIdForAdvertisers];
70+
}
71+
6772
+ (id)getInstance {
6873
static Adjust *defaultInstance = nil;
6974
static dispatch_once_t onceToken;
@@ -133,6 +138,10 @@ - (void)setOfflineMode:(BOOL)enabled {
133138
[self.activityHandler setOfflineMode:enabled];
134139
}
135140

141+
- (NSString*)idfa {
142+
return [[UIDevice currentDevice] adjIdForAdvertisers];
143+
}
144+
136145
#pragma mark - private
137146

138147
- (BOOL) checkActivityHandler {

AdjustTests/ADJPackageFields.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ - (id) init {
1616

1717
// default values
1818
self.appToken = @"123456789012";
19-
self.clientSdk = @"ios4.5.1";
19+
self.clientSdk = @"ios4.5.2";
2020
self.suffix = @"";
2121
self.environment = @"sandbox";
2222

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If you're using [CocoaPods][cocoapods] for `iOs` or `tvOS`, you can add the foll
1818
`Podfile` and continue with [step 4](#step4):
1919

2020
```ruby
21-
pod 'Adjust', :git => 'git://github.com/adjust/ios_sdk.git', :tag => 'v4.5.1'
21+
pod 'Adjust', :git => 'git://github.com/adjust/ios_sdk.git', :tag => 'v4.5.2'
2222
```
2323

2424
If you're using [Carthage][carthage], you can add following line to your `Cartfile`

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.5.1
1+
4.5.2

doc/migrate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Migrate your adjust SDK for iOS to v4.5.1 from v3.4.0
1+
## Migrate your adjust SDK for iOS to v4.5.2 from v3.4.0
22

33
### Initial setup
44

0 commit comments

Comments
 (0)