From cae9ab513e493a35a6c38620eca8ab53182315c2 Mon Sep 17 00:00:00 2001 From: Ben Baron Date: Tue, 17 Sep 2024 09:20:44 -0500 Subject: [PATCH] Fix tests --- mParticle-Apple-SDK/Location/MPLocationManager.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mParticle-Apple-SDK/Location/MPLocationManager.swift b/mParticle-Apple-SDK/Location/MPLocationManager.swift index b6774761..8ca2095e 100644 --- a/mParticle-Apple-SDK/Location/MPLocationManager.swift +++ b/mParticle-Apple-SDK/Location/MPLocationManager.swift @@ -8,7 +8,7 @@ import Foundation import UIKit -#if os(iOS) +#if os(iOS) && !MPARTICLE_LOCATION_DISABLE import CoreLocation #endif @@ -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? @@ -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)