mapbox / turf-swift

A Swift language port of Turf.js.
https://mapbox.github.io/turf-swift/
ISC License
237 stars 55 forks source link

Establish release process for Turf binary distribution #243

Closed aleksproger closed 3 weeks ago

aleksproger commented 1 month ago

Issues solved:

1ec5 commented 1 month ago

Out of curiosity, could you speak to why this library is no longer being distributed as source code and no longer supporting Linux?

aleksproger commented 1 month ago

@1ec5, Turf will become a dependency of other Mapbox library deeper in Mapbox SDK stack and this library is distributed as binary only dynamic framework, which means that Turf needs to be distributed as binary as well. In order to eliminate the issues when client may depend on Mapbox SDK stack where binary dependency exists and also on source-based Turf it was decided to switch to binary distribution of Turf and allow SwiftPM properly resolve compatibility issues. Technically, the support for Linux is not dropped, however it was only in SwiftPM and now we don't build with SwiftPM, but use .xcframework binary instead.

aleksproger commented 1 month ago

@1ec5 according to your question we came up with the solution to continue support for Linux with source based build, while Apple platforms will use binary distribution compatible with Mapbox SDK stack