From 254c059f53572cab3d06e1e408983363f3011c52 Mon Sep 17 00:00:00 2001 From: Noah Martin Date: Tue, 7 Oct 2025 16:48:44 -0700 Subject: [PATCH] chore: Remove debug meta decodable V9 checks --- .../Codable/SentryDebugMetaCodable.swift | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Sources/Swift/Protocol/Codable/SentryDebugMetaCodable.swift b/Sources/Swift/Protocol/Codable/SentryDebugMetaCodable.swift index 574cb1105ca..5f21984b371 100644 --- a/Sources/Swift/Protocol/Codable/SentryDebugMetaCodable.swift +++ b/Sources/Swift/Protocol/Codable/SentryDebugMetaCodable.swift @@ -1,16 +1,14 @@ @_implementationOnly import _SentryPrivate import Foundation -#if SDK_V9 -final class DebugMetaDecodable: DebugMeta { - convenience public init(from decoder: any Decoder) throws { - try self.init(decodedFrom: decoder) - } -} -#else +#if COCOAPODS +extension DebugMeta: Decodable { } typealias DebugMetaDecodable = DebugMeta +#else +final class DebugMetaDecodable: DebugMeta, Codable { } #endif -extension DebugMetaDecodable: Decodable { + +extension DebugMeta { private enum CodingKeys: String, CodingKey { case uuid @@ -22,12 +20,10 @@ extension DebugMetaDecodable: Decodable { case imageVmAddress = "image_vmaddr" case codeFile = "code_file" } - - #if !SDK_V9 + required convenience public init(from decoder: any Decoder) throws { try self.init(decodedFrom: decoder) } - #endif private convenience init(decodedFrom decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self)