fulldecent / swift5-module-template

An opinionated starting point for awesome, reusable Swift 5 modules
MIT License
450 stars 56 forks source link

Update Package.swift to use Swift 5+ #46

Closed yaroslav-zhurakovskiy closed 3 years ago

yaroslav-zhurakovskiy commented 4 years ago

Upgrade Package.swift so it can take advantage of the latest features.

Documentation references: https://developer.apple.com/documentation/swift_packages/package https://developer.apple.com/documentation/swift_packages/platform https://developer.apple.com/documentation/swift_packages/package/3197887-swiftlanguageversions https://developer.apple.com/documentation/swift_packages/swiftversion

fulldecent commented 4 years ago

Right now I am seeing 5.1 at https://github.com/fulldecent/swift5-module-template/blob/master/xxPROJECTxNAMExx/Package.swift#L1

Are you seeing 4.2 somewhere?


Regarding platform and swiftLanguageVersions. Perhaps we can add a note into the Package.swift file. But since this is a default file intended to be used by everybody programming in Swift then perhaps we should not limit the default by choosing these defaults.

yaroslav-zhurakovskiy commented 4 years ago

Sorry, I just added the issue concerning the usage of new parameters. I though it was using the old version of swift because I did not see "platform" param.

fulldecent commented 3 years ago

thank you, closing