Skip to content

Commit

Permalink
Merge pull request #316 from adjust/v4121
Browse files Browse the repository at this point in the history
Version 4.12.1
  • Loading branch information
uerceg authored Dec 13, 2017
2 parents e1d67b1 + abca14a commit 1fab8d1
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 27 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.12.0"
s.version = "4.12.1"
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 = { "Christian Wellenbrock" => "welle@adjust.com" }
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.12.0" }
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.12.1" }
s.ios.deployment_target = '6.0'
s.tvos.deployment_target = '9.0'
s.framework = 'SystemConfiguration'
Expand Down
12 changes: 6 additions & 6 deletions Adjust/ADJReachability.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@


typedef enum : NSInteger {
NotReachable = 0,
ReachableViaWiFi,
ReachableViaWWAN
} NetworkStatus;
ADJNotReachable = 0,
ADJReachableViaWiFi,
ADJReachableViaWWAN
} ADJNetworkStatus;

#pragma mark IPv6 Support
//Reachability fully support IPv6. For full details, see ReadMe.md.


extern NSString *kReachabilityChangedNotification;
extern NSString *kADJReachabilityChangedNotification;


@interface ADJReachability : NSObject
Expand Down Expand Up @@ -52,7 +52,7 @@ extern NSString *kReachabilityChangedNotification;
- (BOOL)startNotifier;
- (void)stopNotifier;

- (NetworkStatus)currentReachabilityStatus;
- (ADJNetworkStatus)currentReachabilityStatus;

/*!
* WWAN may be available, but not active until a connection has been established. WiFi may require a connection for VPN on Demand.
Expand Down
20 changes: 10 additions & 10 deletions Adjust/ADJReachability.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma mark IPv6 Support

NSString *kReachabilityChangedNotification = @"kNetworkReachabilityChangedNotification";
NSString *kADJReachabilityChangedNotification = @"kNetworkReachabilityChangedNotification";

#pragma mark - Supporting functions

Expand Down Expand Up @@ -52,7 +52,7 @@ static void ReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReach

ADJReachability* noteObject = (__bridge ADJReachability *)info;
// Post a notification to notify the client that the network reachability changed.
[[NSNotificationCenter defaultCenter] postNotificationName: kReachabilityChangedNotification object: noteObject];
[[NSNotificationCenter defaultCenter] postNotificationName: kADJReachabilityChangedNotification object: noteObject];
}


Expand Down Expand Up @@ -154,23 +154,23 @@ - (void)dealloc

#pragma mark - Network Flag Handling

- (NetworkStatus)networkStatusForFlags:(SCNetworkReachabilityFlags)flags
- (ADJNetworkStatus)networkStatusForFlags:(SCNetworkReachabilityFlags)flags
{
PrintReachabilityFlags(flags, "networkStatusForFlags");
if ((flags & kSCNetworkReachabilityFlagsReachable) == 0)
{
// The target host is not reachable.
return NotReachable;
return ADJNotReachable;
}

NetworkStatus returnValue = NotReachable;
ADJNetworkStatus returnValue = ADJNotReachable;

if ((flags & kSCNetworkReachabilityFlagsConnectionRequired) == 0)
{
/*
If the target host is reachable and no connection is required then we'll assume (for now) that you're on Wi-Fi...
*/
returnValue = ReachableViaWiFi;
returnValue = ADJReachableViaWiFi;
}

if ((((flags & kSCNetworkReachabilityFlagsConnectionOnDemand ) != 0) ||
Expand All @@ -185,7 +185,7 @@ - (NetworkStatus)networkStatusForFlags:(SCNetworkReachabilityFlags)flags
/*
... and no [user] intervention is needed...
*/
returnValue = ReachableViaWiFi;
returnValue = ADJReachableViaWiFi;
}
}

Expand All @@ -194,7 +194,7 @@ - (NetworkStatus)networkStatusForFlags:(SCNetworkReachabilityFlags)flags
/*
... but WWAN connections are OK if the calling application is using the CFNetwork APIs.
*/
returnValue = ReachableViaWWAN;
returnValue = ADJReachableViaWWAN;
}

return returnValue;
Expand All @@ -215,10 +215,10 @@ - (BOOL)connectionRequired
}


- (NetworkStatus)currentReachabilityStatus
- (ADJNetworkStatus)currentReachabilityStatus
{
NSAssert(_reachabilityRef != NULL, @"currentNetworkStatus called with NULL SCNetworkReachabilityRef");
NetworkStatus returnValue = NotReachable;
ADJNetworkStatus returnValue = ADJNotReachable;
SCNetworkReachabilityFlags flags;

if (SCNetworkReachabilityGetFlags(_reachabilityRef, &flags))
Expand Down
2 changes: 1 addition & 1 deletion Adjust/ADJUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

static NSString *userAgent = nil;

static NSString * const kClientSdk = @"ios4.12.0";
static NSString * const kClientSdk = @"ios4.12.1";
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
//
// V4.12.0
// V4.12.1
// Created by Christian Wellenbrock (wellle) on 23rd July 2013.
// Copyright © 2012-2017 Adjust GmbH. All rights reserved.
//
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 = @"qwerty123456";
self.clientSdk = @"ios4.12.0";
self.clientSdk = @"ios4.12.1";
self.suffix = @"";
self.environment = @"sandbox";

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### Version 4.12.1 (13th December 2017)
#### Fixed
- Fixed compatibility of Adjust SDK with apps that are already using `Reachability` class (https://github.com/adjust/ios_sdk/issues/315) (thanks to @fedetrim).

---

### Version 4.12.0 (13th December 2017)
#### Added
- Added reading of MCC.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ We will describe the steps to integrate the adjust SDK into your iOS project. We
If you're using [CocoaPods][cocoapods], you can add the following line to your `Podfile` and continue from [this step](#sdk-integrate):

```ruby
pod 'Adjust', '~> 4.12.0'
pod 'Adjust', '~> 4.12.1'
```

or:

```ruby
pod 'Adjust', :git => 'https://github.com/adjust/ios_sdk.git', :tag => 'v4.12.0'
pod 'Adjust', :git => 'https://github.com/adjust/ios_sdk.git', :tag => 'v4.12.1'
```

---
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.12.0
4.12.1
2 changes: 1 addition & 1 deletion doc/english/migrate.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Migrate your adjust SDK for iOS to v4.12.0 from v3.4.0
## Migrate your adjust SDK for iOS to v4.12.1 from v3.4.0

### Initial setup

Expand Down
2 changes: 1 addition & 1 deletion doc/japanese/migrate_ja.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## iOS用adjust SDKのv3.4.0からv.4.12.0への移行
## iOS用adjust SDKのv3.4.0からv.4.12.1への移行

### 初期設定

Expand Down
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.12.0 from v3.4.0
## Migrate your adjust SDK for iOS to v4.12.1 from v3.4.0

### Initial setup

Expand Down

0 comments on commit 1fab8d1

Please sign in to comment.