Skip to content

Commit

Permalink
Adds tvOS support (#112)
Browse files Browse the repository at this point in the history
* Adds tvOS support

---------

Co-authored-by: Brian Plattenburg <[email protected]>
  • Loading branch information
hamchapman and bplattenburg authored Nov 26, 2024
1 parent 04ccff1 commit 6b8232d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ jobs:
run: swift test

macos:
name: macOS & iOS (Xcode)
name: macOS, iOS, tvOS (Xcode)
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Test macOS
run: xcodebuild test -scheme SwiftCBOR -destination 'platform=OS X,arch=x86_64'
- name: Test iOS
run: xcodebuild test -scheme SwiftCBOR -destination 'platform=iOS Simulator,name=iPhone 16 Pro,OS=latest'
- name: Test tvOS
run: xcodebuild test -scheme SwiftCBOR -destination 'platform=tvOS Simulator,name=Any tvOS Simulator Device'
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PackageDescription

let package = Package(
name: "SwiftCBOR",
platforms: [.macOS(.v10_13), .iOS(.v13)],
platforms: [.macOS(.v10_13), .iOS(.v13), .tvOS(.v13)],
products: [
.library(name: "SwiftCBOR", targets: ["SwiftCBOR"])
],
Expand Down
1 change: 1 addition & 0 deletions SwiftCBOR.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Pod::Spec.new do |s|

s.ios.deployment_target = '13.0'
s.osx.deployment_target = '10.13'
s.tvos.deployment_target = '13.0'

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

Expand Down

0 comments on commit 6b8232d

Please sign in to comment.