Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove key path for xcode 12.5 #45

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RxCoreLocation.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Pod::Spec.new do |s|
s.social_media_url = 'https://twitter.com/bobgodwinx'
s.authors = { "Obi Bob Godwin" => "bobgodwinx@gmail.com" }
s.source = { :git => "https://github.com/RxSwiftCommunity/RxCoreLocation.git", :tag => s.version.to_s }
s.ios.deployment_target = '9.0'
s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.10'
s.watchos.deployment_target = '3.0'
s.tvos.deployment_target = '9.0'
Expand Down
7 changes: 1 addition & 6 deletions Sources/CLLocationManagerEvents+Rx.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ extension Reactive where Base: CLLocationManager {
.map { $0 }
.unwrap()
}
/// Reactive Observable for `showsBackgroundLocationIndicator`
public var showsBackgroundLocationIndicator: Observable<Bool> {
return self.observe(Bool.self, .showsBackgroundLocationIndicator)
.map { $0 }
.unwrap()
}

/// Reactive Observable for `location`
public var location: Observable<CLLocation?> {
let updatedLocation = self.didUpdateLocations.map { $1.last }
Expand Down
2 changes: 1 addition & 1 deletion Sources/RxKeyPaths.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extension String {
static let desiredAccuracy = #keyPath(CLLocationManager.desiredAccuracy)
static let pausesLocationUpdatesAutomatically = #keyPath(CLLocationManager.pausesLocationUpdatesAutomatically)
static let allowsBackgroundLocationUpdates = #keyPath(CLLocationManager.allowsBackgroundLocationUpdates)
static let showsBackgroundLocationIndicator = #keyPath(CLLocationManager.showsBackgroundLocationIndicator)
// static let showsBackgroundLocationIndicator = #keyPath(CLLocationManager.showsBackgroundLocationIndicator)
static let location = #keyPath(CLLocationManager.location)
static let headingFilter = #keyPath(CLLocationManager.headingFilter)
static let headingOrientation = #keyPath(CLLocationManager.headingOrientation)
Expand Down