Skip to content

Commit 8c4105a

Browse files
authored
vk-history-recording-redeprecation: changed deprecation marks for HistoryRecording extension methods (#3970)
1 parent 4689054 commit 8c4105a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/MapboxCoreNavigation/HistoryRecording.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ public extension HistoryRecording {
164164

165165
- precondition: Use the `startRecordingHistory()` method to begin recording history. If the `startRecordingHistory()` method has not been called, this method has no effect.
166166
*/
167-
@available(*, deprecated, message: "Use corresponding instance method instead.")
168167
static func pushHistoryEvent<Value: Encodable>(type: String, value: Value?, encoder: JSONEncoder? = nil) throws {
169168
let data = try value.map { value -> Data in
170169
try (encoder ?? JSONEncoder()).encode(value)
@@ -181,6 +180,7 @@ public extension HistoryRecording {
181180

182181
- precondition: Use the `startRecordingHistory()` method to begin recording history. If the `startRecordingHistory()` method has not been called, this method has no effect.
183182
*/
183+
@available(*, deprecated, message: "Use corresponding static method instead.")
184184
func pushHistoryEvent<Value: Encodable>(type: String, value: Value?, encoder: JSONEncoder? = nil) throws {
185185
let data = try value.map { value -> Data in
186186
try (encoder ?? JSONEncoder()).encode(value)
@@ -196,7 +196,6 @@ public extension HistoryRecording {
196196

197197
- precondition: Use the `startRecordingHistory()` method to begin recording history. If the `startRecordingHistory()` method has not been called, this method has no effect.
198198
*/
199-
@available(*, deprecated, message: "Use corresponding instance method instead.")
200199
static func pushHistoryEvent(type: String, dictionary value: [String: Any?]?) throws {
201200
let data = try value.map { value -> Data in
202201
try JSONSerialization.data(withJSONObject: value, options: [])
@@ -212,6 +211,7 @@ public extension HistoryRecording {
212211

213212
- precondition: Use the `startRecordingHistory()` method to begin recording history. If the `startRecordingHistory()` method has not been called, this method has no effect.
214213
*/
214+
@available(*, deprecated, message: "Use corresponding static method instead.")
215215
func pushHistoryEvent(type: String, dictionary value: [String: Any?]?) throws {
216216
let data = try value.map { value -> Data in
217217
try JSONSerialization.data(withJSONObject: value, options: [])

0 commit comments

Comments
 (0)