A fast, safe, and efficient CBOR serialization library for Swift on any platform. swiftpackageindex.com/thecoolwinter/CBOR/1.1.1/documentation/cbor
atproto swift cbor

Fix Build For iOS, tvOS, watchOS, visionOS

+4 -4
+2 -2
Sources/CBOR/Decoder/Containers/SingleValueCBORDecodingContainer.swift
··· 103 103 return value 104 104 } 105 105 106 - @available(macOS 15.0, *) 106 + @available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) 107 107 func decode(_ type: Int128.Type) throws -> Int128 { 108 108 try checkType(.uint, .nint, forType: Int128.self) 109 109 let value = try data.readInt(as: Int128.self) ··· 113 113 return value 114 114 } 115 115 116 - @available(macOS 15.0, *) 116 + @available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) 117 117 func decode(_ type: UInt128.Type) throws -> UInt128 { 118 118 try checkType(.uint, .nint, forType: UInt128.self) 119 119 let value = try data.readInt(as: UInt128.self)
+2 -2
Sources/CBOR/Encoder/Containers/SingleValueCBOREncodingContainer.swift
··· 72 72 parent.register(IntOptimizer(value: value)) 73 73 } 74 74 75 - @available(macOS 15.0, *) 75 + @available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) 76 76 func encode(_ value: Int128) throws { 77 77 parent.register(IntOptimizer(value: value)) 78 78 } 79 79 80 - @available(macOS 15.0, *) 80 + @available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) 81 81 func encode(_ value: UInt128) throws { 82 82 parent.register(IntOptimizer(value: value)) 83 83 }