Skip to content

Commit

Permalink
Deprecated LocationPrecision (#1049)
Browse files Browse the repository at this point in the history
* Removed LocationPrecision

* Revert "Removed LocationPrecision"

This reverts commit 383b724.

* Deprecates locationPrecision property.

---------

Co-authored-by: Maksym Danylov <[email protected]>
  • Loading branch information
jsligh and mdanylov-sigma authored Jan 30, 2025
1 parent 1a70944 commit fc30729
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions PrebidMobile/ConfigurationAndTargeting/Targeting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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?
}
Expand Down

0 comments on commit fc30729

Please sign in to comment.