swift-paseto icon indicating copy to clipboard operation
swift-paseto copied to clipboard

.sortedKeys requires iOS 11

Open frederikbosch opened this issue 2 years ago • 4 comments
trafficstars

frederikbosch avatar Mar 13 '23 13:03 frederikbosch

I might actually just bump the package version to iOS 11 etc... here. Turns out these if #available checks aren't useful for avoiding compile errors like I'd thought 🙁

aidantwoods avatar Mar 15 '23 08:03 aidantwoods

Good idea. Another option is to only support iOS/Mac etc versions that actually receive security updates by Apple. Users that really want support for older operating system versions are then forced to use older versions of the library.

If you would follow this path, this would lead to the following minimal operating system versions.

  • iOS 12
  • MacOS 11
  • WatchOS 9
  • For TV OS I cannot find any reference to what version receives updates by Apple, by I only observe updates for the latest OS. So I would set that to tvOS 16.

frederikbosch avatar Mar 15 '23 08:03 frederikbosch

That's a great point, let's go with that.

It'll be the same line I'm drawing in my Go version of this library too, so it'll be nice to also be consistent 😀

aidantwoods avatar Mar 15 '23 08:03 aidantwoods

Yes, I am also using that for my PHP packages.

frederikbosch avatar Mar 15 '23 09:03 frederikbosch