swiftsocket / SwiftSocket

The easy way to use sockets on Apple platforms
BSD 3-Clause "New" or "Revised" License
1.68k stars 400 forks source link

Swift package manager supprort, and use Swift.Result #198

Closed klundberg closed 6 months ago

klundberg commented 4 years ago

I had to split the c and swift code into separate targets to make this work, since mixed-lang targets arent allowed in swiftpm, but it otherwise works well, and should be still cocoapods-compatible (based on a pod lib lint I ran).

Swift now has a built in result enum as well, which I've converted the project over to use instead of the previously custom result.