From fc3072952cd090c04feecefe6b746bbc60b4d850 Mon Sep 17 00:00:00 2001 From: Jono Sligh <139150153+jsligh@users.noreply.github.com> Date: Thu, 30 Jan 2025 05:57:42 -0600 Subject: [PATCH] Deprecated LocationPrecision (#1049) * Removed LocationPrecision * Revert "Removed LocationPrecision" This reverts commit 383b724b9d72dbe74aefb837d16de16dc1f088ad. * Deprecates locationPrecision property. --------- Co-authored-by: Maksym Danylov --- PrebidMobile/ConfigurationAndTargeting/Targeting.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PrebidMobile/ConfigurationAndTargeting/Targeting.swift b/PrebidMobile/ConfigurationAndTargeting/Targeting.swift index 103c834ae..659ddf56f 100644 --- a/PrebidMobile/ConfigurationAndTargeting/Targeting.swift +++ b/PrebidMobile/ConfigurationAndTargeting/Targeting.swift @@ -285,14 +285,21 @@ public class Targeting: NSObject { public var location: CLLocation? /// The application location precision for targeting + /// Deprecated. + @available(*, deprecated, message: "This property is deprecated. In the upcoming major release, the property will be removed.") public var locationPrecision: Int? /// Objective-C API + /// Deprecated. + @available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed.") + public func setLocationPrecision(_ newValue: NSNumber?) { locationPrecision = newValue?.intValue } /// Objective-C API + /// Deprecated. + @available(*, deprecated, message: "This method is deprecated. In the upcoming major release, the method will be removed.") public func getLocationPrecision() -> NSNumber? { return locationPrecision as NSNumber? }