Skip to content

Commit 03cf114

Browse files
committed
chore: Remove debug meta decodable V9 checks
1 parent fa9a4bb commit 03cf114

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

Sources/Swift/Protocol/Codable/SentryDebugMetaCodable.swift

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
@_implementationOnly import _SentryPrivate
22
import Foundation
33

4-
#if SDK_V9
5-
final class DebugMetaDecodable: DebugMeta {
6-
convenience public init(from decoder: any Decoder) throws {
7-
try self.init(decodedFrom: decoder)
8-
}
9-
}
4+
#if COCOAPODS
5+
extension DebugMeta: Decodable { }
106
#else
11-
typealias DebugMetaDecodable = DebugMeta
7+
final class DebugMetaDecodable: DebugMeta { }
8+
9+
extension DebugMetaDecodable: Codable { }
1210
#endif
13-
extension DebugMetaDecodable: Decodable {
11+
12+
extension DebugMeta {
1413

1514
private enum CodingKeys: String, CodingKey {
1615
case uuid
@@ -22,12 +21,10 @@ extension DebugMetaDecodable: Decodable {
2221
case imageVmAddress = "image_vmaddr"
2322
case codeFile = "code_file"
2423
}
25-
26-
#if !SDK_V9
24+
2725
required convenience public init(from decoder: any Decoder) throws {
2826
try self.init(decodedFrom: decoder)
2927
}
30-
#endif
3128

3229
private convenience init(decodedFrom decoder: Decoder) throws {
3330
let container = try decoder.container(keyedBy: CodingKeys.self)

0 commit comments

Comments
 (0)