Skip to content

Commit 1fab8d1

Browse files
authored
Merge pull request #316 from adjust/v4121
Version 4.12.1
2 parents e1d67b1 + abca14a commit 1fab8d1

File tree

12 files changed

+33
-27
lines changed

12 files changed

+33
-27
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.12.0"
3+
s.version = "4.12.1"
44
s.summary = "This is the iOS SDK of adjust. You can read more about it at http://adjust.com."
55
s.homepage = "https://github.com/adjust/ios_sdk"
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.12.0" }
8+
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.12.1" }
99
s.ios.deployment_target = '6.0'
1010
s.tvos.deployment_target = '9.0'
1111
s.framework = 'SystemConfiguration'

Adjust/ADJReachability.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212

1313

1414
typedef enum : NSInteger {
15-
NotReachable = 0,
16-
ReachableViaWiFi,
17-
ReachableViaWWAN
18-
} NetworkStatus;
15+
ADJNotReachable = 0,
16+
ADJReachableViaWiFi,
17+
ADJReachableViaWWAN
18+
} ADJNetworkStatus;
1919

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

2323

24-
extern NSString *kReachabilityChangedNotification;
24+
extern NSString *kADJReachabilityChangedNotification;
2525

2626

2727
@interface ADJReachability : NSObject
@@ -52,7 +52,7 @@ extern NSString *kReachabilityChangedNotification;
5252
- (BOOL)startNotifier;
5353
- (void)stopNotifier;
5454

55-
- (NetworkStatus)currentReachabilityStatus;
55+
- (ADJNetworkStatus)currentReachabilityStatus;
5656

5757
/*!
5858
* WWAN may be available, but not active until a connection has been established. WiFi may require a connection for VPN on Demand.

Adjust/ADJReachability.m

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#pragma mark IPv6 Support
1919

20-
NSString *kReachabilityChangedNotification = @"kNetworkReachabilityChangedNotification";
20+
NSString *kADJReachabilityChangedNotification = @"kNetworkReachabilityChangedNotification";
2121

2222
#pragma mark - Supporting functions
2323

@@ -52,7 +52,7 @@ static void ReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReach
5252

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

5858

@@ -154,23 +154,23 @@ - (void)dealloc
154154

155155
#pragma mark - Network Flag Handling
156156

157-
- (NetworkStatus)networkStatusForFlags:(SCNetworkReachabilityFlags)flags
157+
- (ADJNetworkStatus)networkStatusForFlags:(SCNetworkReachabilityFlags)flags
158158
{
159159
PrintReachabilityFlags(flags, "networkStatusForFlags");
160160
if ((flags & kSCNetworkReachabilityFlagsReachable) == 0)
161161
{
162162
// The target host is not reachable.
163-
return NotReachable;
163+
return ADJNotReachable;
164164
}
165165

166-
NetworkStatus returnValue = NotReachable;
166+
ADJNetworkStatus returnValue = ADJNotReachable;
167167

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

176176
if ((((flags & kSCNetworkReachabilityFlagsConnectionOnDemand ) != 0) ||
@@ -185,7 +185,7 @@ - (NetworkStatus)networkStatusForFlags:(SCNetworkReachabilityFlags)flags
185185
/*
186186
... and no [user] intervention is needed...
187187
*/
188-
returnValue = ReachableViaWiFi;
188+
returnValue = ADJReachableViaWiFi;
189189
}
190190
}
191191

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

200200
return returnValue;
@@ -215,10 +215,10 @@ - (BOOL)connectionRequired
215215
}
216216

217217

218-
- (NetworkStatus)currentReachabilityStatus
218+
- (ADJNetworkStatus)currentReachabilityStatus
219219
{
220220
NSAssert(_reachabilityRef != NULL, @"currentNetworkStatus called with NULL SCNetworkReachabilityRef");
221-
NetworkStatus returnValue = NotReachable;
221+
ADJNetworkStatus returnValue = ADJNotReachable;
222222
SCNetworkReachabilityFlags flags;
223223

224224
if (SCNetworkReachabilityGetFlags(_reachabilityRef, &flags))

Adjust/ADJUtil.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
static NSString *userAgent = nil;
4343

44-
static NSString * const kClientSdk = @"ios4.12.0";
44+
static NSString * const kClientSdk = @"ios4.12.1";
4545
static NSString * const kDeeplinkParam = @"deep_link=";
4646
static NSString * const kSchemeDelimiter = @"://";
4747
static NSString * const kDefaultScheme = @"AdjustUniversalScheme";

Adjust/Adjust.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Adjust.h
33
// Adjust
44
//
5-
// V4.12.0
5+
// V4.12.1
66
// Created by Christian Wellenbrock (wellle) on 23rd July 2013.
77
// Copyright © 2012-2017 Adjust GmbH. All rights reserved.
88
//

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 = @"qwerty123456";
19-
self.clientSdk = @"ios4.12.0";
19+
self.clientSdk = @"ios4.12.1";
2020
self.suffix = @"";
2121
self.environment = @"sandbox";
2222

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### Version 4.12.1 (13th December 2017)
2+
#### Fixed
3+
- Fixed compatibility of Adjust SDK with apps that are already using `Reachability` class (https://github.com/adjust/ios_sdk/issues/315) (thanks to @fedetrim).
4+
5+
---
6+
17
### Version 4.12.0 (13th December 2017)
28
#### Added
39
- Added reading of MCC.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ We will describe the steps to integrate the adjust SDK into your iOS project. We
6666
If you're using [CocoaPods][cocoapods], you can add the following line to your `Podfile` and continue from [this step](#sdk-integrate):
6767

6868
```ruby
69-
pod 'Adjust', '~> 4.12.0'
69+
pod 'Adjust', '~> 4.12.1'
7070
```
7171

7272
or:
7373

7474
```ruby
75-
pod 'Adjust', :git => 'https://github.com/adjust/ios_sdk.git', :tag => 'v4.12.0'
75+
pod 'Adjust', :git => 'https://github.com/adjust/ios_sdk.git', :tag => 'v4.12.1'
7676
```
7777

7878
---

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.12.0
1+
4.12.1

doc/english/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.12.0 from v3.4.0
1+
## Migrate your adjust SDK for iOS to v4.12.1 from v3.4.0
22

33
### Initial setup
44

0 commit comments

Comments
 (0)