Device icon indicating copy to clipboard operation
Device copied to clipboard

Add SwiftPM manifest and OS source guards

Open felixbuenemann opened this issue 4 years ago • 3 comments

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.

felixbuenemann avatar Sep 26 '20 02:09 felixbuenemann

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.

felixbuenemann avatar Sep 26 '20 02:09 felixbuenemann

Readme could be updated as well

micromanc3r avatar Dec 08 '20 06:12 micromanc3r

Readme could be updated as well

Sure, what do you suggest?

felixbuenemann avatar Dec 15 '20 21:12 felixbuenemann