Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
einsteinx2 committed Sep 17, 2024
1 parent 18faf3c commit cae9ab5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mParticle-Apple-SDK/Location/MPLocationManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import UIKit

#if os(iOS)
#if os(iOS) && !MPARTICLE_LOCATION_DISABLE
import CoreLocation
#endif

Expand All @@ -19,7 +19,7 @@ import CoreLocation
return _trackingLocation
}

#if os(iOS)
#if os(iOS) && !MPARTICLE_LOCATION_DISABLE
private static var _locationManager: CLLocationManager?

@objc public var location: CLLocation?
Expand Down Expand Up @@ -93,7 +93,7 @@ import CoreLocation
#endif
}

#if os(iOS)
#if os(iOS) && !MPARTICLE_LOCATION_DISABLE
extension MPLocationManager_PRIVATE: CLLocationManagerDelegate {
public func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) {
Self._trackingLocation = (status == .authorizedAlways || status == .authorizedWhenInUse)
Expand Down

0 comments on commit cae9ab5

Please sign in to comment.