Skip to content

Commit

Permalink
Merge pull request #2206 from mapbox/1ec5-ios10
Browse files Browse the repository at this point in the history
Require iOS 10.0
  • Loading branch information
1ec5 authored Oct 1, 2019
2 parents 9d7f70c + 65c9663 commit 51c4ad2
Show file tree
Hide file tree
Showing 59 changed files with 367 additions and 391 deletions.
13 changes: 6 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ jobs:
steps:
- run: find . -path '*.podspec' -exec perl -pi -e 's/.+\.social_media_url.+//' {} \;
- run: pod lib lint MapboxCoreNavigation.podspec
- run: pod lib lint MapboxNavigation.podspec
- *save-cache-podmaster
- *save-cache-cocoapods

Expand Down Expand Up @@ -175,19 +174,19 @@ workflows:
workflow:
jobs:
- build-job:
name: "Xcode_10.3_iOS_12.2"
xcode: "10.3.0"
iOS: "12.2"
name: "Xcode_11.1_iOS_13.1"
xcode: "11.1.0"
iOS: "13.1"
device: "iPhone 8 Plus"
- build-job:
name: "Xcode_10.3_iOS_12.1"
xcode: "10.3.0"
iOS: "12.1"
codecoverage: true
- build-job:
name: "Xcode_10.1_iOS_9.3"
name: "Xcode_10.1_iOS_10.3.1"
xcode: "10.1.0"
iOS: "9.3"
delete_private_deps: true
iOS: "10.3.1"
test: false
- pod-job:
name: "Xcode_10.2_iOS_12.2_CP_install"
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Changes to the Mapbox Navigation SDK for iOS

## master

* This library now requires a minimum deployment target of iOS 10.0 or above. iOS 9._x_ is no longer supported. ([#2206](https://github.com/mapbox/mapbox-navigation-ios/pull/2206))
* Lock screen notifications are presented more reliably and more closely resemble instruction banners. ([#2206](https://github.com/mapbox/mapbox-navigation-ios/pull/2206))
* Fixed an issue where manually incrementing `RouteProgress.legIndex` could lead to undefined behavior. ([#2229](https://github.com/mapbox/mapbox-navigation-ios/pull/2229))
* `DistanceFormatter` now inherits directly from `Formatter` rather than `LengthFormatter`. ([#2206](https://github.com/mapbox/mapbox-navigation-ios/pull/2206))
* Fixed an issue where `DistanceFormatter.attributedString(for:withDefaultAttributes:)` set `NSAttributedString.Key.quantity` to the original distance value rather than the potentially rounded value represented by the attributed string. ([#2206](https://github.com/mapbox/mapbox-navigation-ios/pull/2206))

## v0.37.0

Expand Down
8 changes: 3 additions & 5 deletions Example/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,9 @@ class ViewController: UIViewController {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)

if #available(iOS 10.0, *) {
UNUserNotificationCenter.current().requestAuthorization(options: [.badge, .alert, .sound]) { _,_ in
DispatchQueue.main.async {
CLLocationManager().requestWhenInUseAuthorization()
}
UNUserNotificationCenter.current().requestAuthorization(options: [.badge, .alert, .sound]) { _, _ in
DispatchQueue.main.async {
CLLocationManager().requestWhenInUseAuthorization()
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion MapboxCoreNavigation.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Pod::Spec.new do |s|

# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

s.ios.deployment_target = "9.0"
s.ios.deployment_target = "10.0"


# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand Down
Loading

0 comments on commit 51c4ad2

Please sign in to comment.