Skip to content

Commit

Permalink
compile only for macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Nikhil Nigade <[email protected]>
  • Loading branch information
dezinezync committed Sep 14, 2023
1 parent a6319d1 commit 5fcecde
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion EasyPeasy/DimensionAttribute+AppKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

#if canImport(AppKit)
#if os(macOS) && canImport(AppKit)

import AppKit

Expand Down
2 changes: 1 addition & 1 deletion EasyPeasy/Item+AppKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

#if canImport(AppKit)
#if os(macOS) && canImport(AppKit)

import AppKit

Expand Down
2 changes: 1 addition & 1 deletion EasyPeasy/NSLayoutGuide+Easy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

#if canImport(AppKit)
#if os(macOS) && canImport(AppKit)

import AppKit

Expand Down
2 changes: 1 addition & 1 deletion EasyPeasy/NSView+Easy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

#if canImport(AppKit)
#if os(macOS) && canImport(AppKit)

import AppKit

Expand Down
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// swift-tools-version:5.1
// swift-tools-version:5.9

import PackageDescription

let package = Package(
name: "EasyPeasy",
platforms: [
.iOS(.v11),
.macOS(.v10_10),
.tvOS(.v9)
.iOS(.v12),
.macOS(.v10_13),
.tvOS(.v12)
],
products: [
.library(name: "EasyPeasy", targets: ["EasyPeasy"]),
Expand Down

0 comments on commit 5fcecde

Please sign in to comment.