Skip to content

Commit

Permalink
Fix AsyncLocationManager initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
gre4ixin committed Oct 30, 2022
1 parent 0ecd496 commit 49fe1cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion AsyncLocationKit.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = 'AsyncLocationKit'
s.module_name = 'AsyncLocationKit'
s.version = '1.5.4'
s.version = '1.5.5'
s.summary = '📍async/await CoreLocation'
s.homepage = 'https://github.com/AsyncSwift/AsyncLocationKit'
s.license = 'MIT'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Wrapper for Apple `CoreLocation` framework with new Concurency Model. No more `d
##### SPM
```swift
dependencies: [
.package(url: "https://github.com/AsyncSwift/AsyncLocationKit.git", .upToNextMinor(from: "1.5.4"))
.package(url: "https://github.com/AsyncSwift/AsyncLocationKit.git", .upToNextMinor(from: "1.5.5"))
]
```

#### Cocoapods
```
pod 'AsyncLocationKit', :git => 'https://github.com/AsyncSwift/AsyncLocationKit.git', :tag => '1.5.4'
pod 'AsyncLocationKit', :git => 'https://github.com/AsyncSwift/AsyncLocationKit.git', :tag => '1.5.5'
```


Expand Down
4 changes: 2 additions & 2 deletions Sources/AsyncLocationKit/AsyncLocationManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public final class AsyncLocationManager {

public init(locationManager: CLLocationManager, desiredAccuracy: LocationAccuracy) {
self.locationManager = locationManager
self.locationManager.delegate = locationDelegate
self.locationManager.desiredAccuracy = desiredAccuracy.convertingAccuracy
proxyDelegate = AsyncDelegateProxy()
locationDelegate = LocationDelegate(delegateProxy: proxyDelegate)
self.locationManager.delegate = locationDelegate
self.locationManager.desiredAccuracy = desiredAccuracy.convertingAccuracy
}

public convenience init(desiredAccuracy: LocationAccuracy) {
Expand Down

0 comments on commit 49fe1cc

Please sign in to comment.