Skip to content

Commit

Permalink
Fix location monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Grechikhin committed Mar 13, 2023
1 parent 4b25ea2 commit 4fb1ba1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,5 @@ fastlane/test_output
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

README~.md
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.6.1"))
.package(url: "https://github.com/AsyncSwift/AsyncLocationKit.git", .upToNextMinor(from: "1.6.2"))
]
```

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


Expand Down
2 changes: 1 addition & 1 deletion Sources/AsyncLocationKit/AsyncLocationKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

import Foundation

public let version: String = "1.5.3"
public let version: String = "1.6.2"
1 change: 1 addition & 0 deletions Sources/AsyncLocationKit/AsyncLocationManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ public final class AsyncLocationManager {
let performer = RegionMonitoringPerformer(region: region)
return RegionMonitoringStream { streamContinuation in
performer.linkContinuation(streamContinuation)
proxyDelegate.addPerformer(performer)
locationManager.startMonitoring(for: region)
streamContinuation.onTermination = { @Sendable _ in
self.proxyDelegate.cancel(for: performer.uniqueIdentifier)
Expand Down

0 comments on commit 4fb1ba1

Please sign in to comment.