File tree Expand file tree Collapse file tree 3 files changed +10
-13
lines changed
Expand file tree Collapse file tree 3 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 11Pod ::Spec . new do |s |
22 s . name = 'AsyncLocationKit'
33 s . module_name = 'AsyncLocationKit'
4- s . version = '1.5.2 '
4+ s . version = '1.5.3 '
55 s . summary = '📍async/await CoreLocation'
66 s . homepage = 'https://github.com/AsyncSwift/AsyncLocationKit'
77 s . license = 'MIT'
Original file line number Diff line number Diff line change 2222
2323import Foundation
2424
25- public let version : String = " 1.0.5 "
25+ public let version : String = " 1.5.3 "
Original file line number Diff line number Diff line change @@ -50,6 +50,14 @@ public final class AsyncLocationManager {
5050 self . desiredAccuracy = desiredAccuracy
5151 }
5252
53+ public func checkingPermissions( ) -> CLAuthorizationStatus {
54+ if #available( iOS 14 , * ) {
55+ return locationManager. authorizationStatus
56+ } else {
57+ return CLLocationManager . authorizationStatus ( )
58+ }
59+ }
60+
5361 public func updateAccuracy( with newAccuracy: LocationAccuracy ) {
5462 locationManager. desiredAccuracy = newAccuracy. convertingAccuracy
5563 }
@@ -195,14 +203,3 @@ public final class AsyncLocationManager {
195203 locationManager. stopRangingBeacons ( satisfying: satisfying)
196204 }
197205}
198-
199- extension AsyncLocationManager {
200- /// Check if user already allowed location permission
201- private func checkingPermissions( ) -> CLAuthorizationStatus {
202- if #available( iOS 14 , * ) {
203- return locationManager. authorizationStatus
204- } else {
205- return CLLocationManager . authorizationStatus ( )
206- }
207- }
208- }
You can’t perform that action at this time.
0 commit comments