tsolomko / SWCompression

A Swift framework for working with compression, archives and containers.
MIT License
233 stars 39 forks source link

Swift 6, Codable, Sendable #58

Closed JoeMatt closed 1 week ago

JoeMatt commented 1 week ago

Add Swift 6 support, plus sendable and codable to most datatypes.

Changes:

Issues:

ZipExtraField protocol not encodable. Either a need concrete types, another workaround or a way to regenerate.

tsolomko commented 1 week ago

Thank you for your interest in this project and your willingness to contribute. Unfortunately, I will not be accepting this PR for many reasons. Some of these reasons include:

JoeMatt commented 6 days ago

Take it or leave it. I needed codbale and sendable in my project to send zip status's around.

You could always make two package.swift's for 5.9 and 6.0 etc.

The ifdef's were needed because if you just open the package.swift and run tests or build against iOS it will fail in the default selection of "build package".

It's a good starting point if you ever decide you need / want these features. I'll stick to my fork I guess. Good luck.