Skip to content

Commit ea5ece7

Browse files
authored
Adds watchOS support (#116)
* Adds watchOS support
1 parent e325c92 commit ea5ece7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: skiptools/swift-android-action@v2
2929

3030
macos:
31-
name: macOS, iOS, tvOS, Mac Catalyst (Xcode)
31+
name: macOS, iOS, tvOS, Mac Catalyst (Xcode), watchOS
3232
runs-on: macos-latest
3333
steps:
3434
- uses: actions/checkout@v1
@@ -40,3 +40,5 @@ jobs:
4040
run: xcodebuild test -scheme SwiftCBOR -destination 'platform=tvOS Simulator,name=Any tvOS Simulator Device'
4141
- name: Test Mac Catalyst
4242
run: xcodebuild test -scheme SwiftCBOR -destination 'platform=macOS,variant=Mac Catalyst'
43+
- name: Test watchOS
44+
run: xcodebuild test -scheme SwiftCBOR -destination 'platform=watchOS Simulator,name=Any watchOS Simulator Device'

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44

55
let package = Package(
66
name: "SwiftCBOR",
7-
platforms: [.macOS(.v10_13), .iOS(.v13), .tvOS(.v13), .macCatalyst(.v13)],
7+
platforms: [.macOS(.v10_13), .iOS(.v13), .tvOS(.v13), .macCatalyst(.v13), .watchOS(.v8)],
88
products: [
99
.library(name: "SwiftCBOR", targets: ["SwiftCBOR"])
1010
],

SwiftCBOR.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Pod::Spec.new do |s|
1414
s.ios.deployment_target = '13.0'
1515
s.osx.deployment_target = '10.13'
1616
s.tvos.deployment_target = '13.0'
17+
s.watchos.deployment_target = '8.0'
1718

1819
s.source_files = 'Sources/**/*.{swift,h}'
1920

0 commit comments

Comments
 (0)