Device
Device copied to clipboard
Add SwiftPM manifest and OS source guards
This allows usage of Device with Swift Package Manager.
Some build conditions are added to allow a single product and target for iOS and macOS.
Ooops, just noticed there are a bunch of other PRs that do the same, like #93 and #100.
~~I noticed that #93 uses canImport
which should be better thatn the os(iOS)
check.~~
The code in Source/iOS/Device.swift
is clearly targetting only iOS, so I think the os(iOS)
check is best.
Readme could be updated as well
Readme could be updated as well
Sure, what do you suggest?