uraimo / SwiftyGPIO

A Swift library for hardware projects on Linux/ARM boards with support for GPIOs/SPI/I2C/PWM/UART/1Wire.
MIT License
1.35k stars 135 forks source link

Swift 3.0 Support #17

Closed colemancda closed 8 years ago

colemancda commented 8 years ago

I would like to request Swift 3.0 support. If there is no progress made, then I will try porting it myself, but I would much rather it be a collaborative effort. Would you be interested?

uraimo commented 8 years ago

Sure! If you have already started feel free to post it here, we'll go on from there. I don't expect that the lib will need many changes, btw.

Regarding the use of a custom Thread class for that init(main:) that is not available on iOS/OSX and has a maybe uncertain future on other platforms, we could go either way, keep it as it is or depend on that portion of SwiftFoundation. Does someone have any opinion on this?

hpux735 commented 8 years ago

With all due respect to @colemancda and the amazing work of PureSwift, I'm pretty hesitant to start bifurcating things like Foundation. :/ But, I certainly wouldn't imply that I have any right to say what others should do! :)

colemancda commented 8 years ago

I don't have any intention of making this project dependent on SwiftFoundation, but I would like to include Thread.swift

hpux735 commented 8 years ago

Fair enough :)

uraimo commented 8 years ago

Ok, considering that Foundation is only needed for the NSThread class by the gpio listeners, and that on some platforms a build with Foundation could not even be available, it makes sense.