Skip to content

Commit

Permalink
Add SPM support, bump mac version to 10.13, ios version to 11
Browse files Browse the repository at this point in the history
Unfortunately simd support is only available from iOS 11 and macOS 10.13
  • Loading branch information
dagronf committed Jan 16, 2021
1 parent aeb40a5 commit 1023b1a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ DerivedData
*.ipa
*.xcuserstate
.DS_Store
contents.xcworkspacedata
4 changes: 2 additions & 2 deletions DominantColor.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Pod::Spec.new do |spec|
spec.source_files = 'DominantColor/Shared/*.{swift,h,m}'
spec.requires_arc = true
spec.frameworks = ['GLKit', 'GameKit']
spec.ios.deployment_target = '9.0'
spec.osx.deployment_target = '10.11'
spec.ios.deployment_target = '11.0'
spec.osx.deployment_target = '10.13'
spec.ios.frameworks = 'UIKit'
spec.osx.frameworks = 'Cocoa'
spec.swift_versions = ['5.0']
Expand Down
28 changes: 28 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// swift-tools-version:5.0

/**
* DominantColor
* Copyright (c) Indragie Karunaratne 2021
* See LICENSE file.
*/

import PackageDescription

let package = Package(
name: "DominantColor",
platforms: [
.macOS(.v10_13),
.iOS(.v11),
.tvOS(.v11)
],
products: [
.library(name: "DominantColor", targets: ["DominantColor"]),
.library(name: "DominantColor_Dynamic", type: .dynamic, targets: ["DominantColor"]),
],
targets: [
.target(
name: "DominantColor",
path: "DominantColor/Shared"
),
]
)

0 comments on commit 1023b1a

Please sign in to comment.