Skip to content

Commit

Permalink
Merge pull request #233 from adjust/v485
Browse files Browse the repository at this point in the history
SFSafariViewController compatibility
  • Loading branch information
uerceg authored Aug 30, 2016
2 parents d40ed83 + 7a303c2 commit 06f5874
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 9 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.8.4"
s.version = "4.8.5"
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" => "[email protected]" }
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.8.4" }
s.source = { :git => "https://github.com/adjust/ios_sdk.git", :tag => "v4.8.5" }
s.ios.deployment_target = '6.0'
s.tvos.deployment_target = '9.0'
s.framework = 'SystemConfiguration'
Expand Down
8 changes: 7 additions & 1 deletion Adjust/ADJTrackingPixel.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ - (id)init {
}

+ (void)present {
[[ADJTrackingPixel getInstance] present];
// If SFSafariViewController is present, use it.
// SFSafariViewController is supported starting from iOS 9.
if (NSClassFromString(@"SFSafariViewController")) {
[[ADJTrackingPixel getInstance] present];
} else {
[[ADJAdjustFactory logger] warn:@"AdWords request can't be sent with this iOS version"];
}
}

- (void)present {
Expand Down
2 changes: 1 addition & 1 deletion Adjust/ADJUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
static NSRegularExpression * shortUniversalLinkRegex = nil;
static NSNumberFormatter * secondsNumberFormatter = nil;

static NSString * const kClientSdk = @"ios4.8.4";
static NSString * const kClientSdk = @"ios4.8.5";
static NSString * const kDefaultScheme = @"AdjustUniversalScheme";
static NSString * const kUniversalLinkPattern = @"https://[^.]*\\.ulink\\.adjust\\.com/ulink/?(.*)";
static NSString * const kShortUniversalLinkPattern = @"http[s]?://[a-z0-9]{4}\\.adj\\.st/?(.*)";
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.8.4";
self.clientSdk = @"ios4.8.5";
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.8.5 (30th August 2016)
#### Fixed
- Not using `SFSafariViewController` on iOS devices with iOS version lower than 9.

---

### Version 4.8.4 (18th August 2016)
#### Added
- Added support for making Google AdWords request in iOS 10.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ If you're using [CocoaPods][cocoapods], you can add the following line to your `
[this step](#sdk-integrate):

```ruby
pod 'Adjust', '~> 4.8.4'
pod 'Adjust', '~> 4.8.5'
```

or:

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

If you're using [Carthage][carthage], you can add following line to your `Cartfile` and continue with
Expand Down Expand Up @@ -837,7 +837,7 @@ send `sdk_click` package anyway to the adjust backend. If you have your log leve
```
[Adjust]d: Added package 1 (click)
[Adjust]v: Path: /sdk_click
[Adjust]v: ClientSdk: ios4.8.4
[Adjust]v: ClientSdk: ios4.8.5
[Adjust]v: Parameters:
[Adjust]v: app_token {YourAppToken}
[Adjust]v: created_at 2016-04-15T14:25:51.676Z+0200
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.8.4
4.8.5

0 comments on commit 06f5874

Please sign in to comment.