Skip to content

Commit

Permalink
Merge pull request #157 from adjust/device_ids
Browse files Browse the repository at this point in the history
Device ids
  • Loading branch information
nonelse committed Feb 1, 2016
2 parents aef1d3c + 30f31fe commit 47f7cb1
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 7 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.5.1"
s.version = "4.5.2"
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.1" }
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.5.2" }
s.ios.deployment_target = '6.0'
s.tvos.deployment_target = '9.0'
s.framework = 'SystemConfiguration'
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.1";
static NSString * const kClientSdk = @"ios4.5.2";

static NSString * const kDateFormat = @"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'Z";
static NSDateFormatter *dateFormat;
Expand Down
2 changes: 2 additions & 0 deletions Adjust/Adjust.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ extern NSString * const ADJEnvironmentProduction;
*/
+ (void)setOfflineMode:(BOOL)enabled;

+ (NSString*)idfa;

/**
* Obtain singleton Adjust object
*/
Expand Down
9 changes: 9 additions & 0 deletions Adjust/Adjust.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#import "ADJActivityHandler.h"
#import "ADJAdjustFactory.h"
#import "ADJLogger.h"
#import "UIDevice+ADJAdditions.h"

#if !__has_feature(objc_arc)
#error Adjust requires ARC
Expand Down Expand Up @@ -64,6 +65,10 @@ + (void)setOfflineMode:(BOOL)enabled {
[[Adjust getInstance] setOfflineMode:enabled];
}

+ (NSString*)idfa {
return [[UIDevice currentDevice] adjIdForAdvertisers];
}

+ (id)getInstance {
static Adjust *defaultInstance = nil;
static dispatch_once_t onceToken;
Expand Down Expand Up @@ -133,6 +138,10 @@ - (void)setOfflineMode:(BOOL)enabled {
[self.activityHandler setOfflineMode:enabled];
}

- (NSString*)idfa {
return [[UIDevice currentDevice] adjIdForAdvertisers];
}

#pragma mark - private

- (BOOL) checkActivityHandler {
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.1";
self.clientSdk = @"ios4.5.2";
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.1'
pod 'Adjust', :git => 'git://github.com/adjust/ios_sdk.git', :tag => 'v4.5.2'
```

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.1
4.5.2
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.1 from v3.4.0
## Migrate your adjust SDK for iOS to v4.5.2 from v3.4.0

### Initial setup

Expand Down

0 comments on commit 47f7cb1

Please sign in to comment.