Flight-School / AnyCodable

Type-erased wrappers for Encodable, Decodable, and Codable values
https://flight.school/books/codable
MIT License
1.28k stars 132 forks source link

Specify minimum platform versions #54

Closed minacle closed 3 years ago

minacle commented 3 years ago

This resolves #53.

AlexisQapa commented 3 years ago

Hi, may I ask what the use for the availability check ?

minacle commented 3 years ago

Hi, may I ask what the use for the availability check ?

I read the document.

Swift Standard Library

Types and Protocols

Methods and Members

Core Foundation

Foundation

AlexisQapa commented 3 years ago

I meant in the commit context,

 let package = Package(
     name: "AnyCodable",
     platforms: [ .iOS(.v8), .macOS(.v10_10), .tvOS(.v9),  .watchOS(.v2)]

would do the same job as the platforms array is not limiting undeclared targets.

minacle commented 3 years ago

@AlexisQapa

In really, I was not sure about that, so I did it so.

But, thank you for the information! Now the code is more clear. 🥳

robinkunde commented 3 years ago

Thank you!