Skip to content

Commit fb46ceb

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

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

Sources/Swift/Protocol/Codable/SentryDebugMetaCodable.swift

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
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, Codable { }
128
#endif
13-
extension DebugMetaDecodable: Decodable {
9+
10+
extension DebugMeta {
1411

1512
private enum CodingKeys: String, CodingKey {
1613
case uuid
@@ -22,12 +19,10 @@ extension DebugMetaDecodable: Decodable {
2219
case imageVmAddress = "image_vmaddr"
2320
case codeFile = "code_file"
2421
}
25-
26-
#if !SDK_V9
22+
2723
required convenience public init(from decoder: any Decoder) throws {
2824
try self.init(decodedFrom: decoder)
2925
}
30-
#endif
3126

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

0 commit comments

Comments
 (0)