Skip to content

Commit cff9e42

Browse files
authored
Add tvOS to components (#13)
This makes the components library available on tvOS. It seemed the the default package.swift was implicitly using a minimum tvOS version of 14, which conflicted with our core SDK at 17. A swift 5.9 file is needed to set it to 17 explicitly here. I added visionOS explicitly as well just for clarity, but it wasn't strictly necessary to do. I was able to test this in the simulator and used our components quickstart guide to join a meet call and show video.
1 parent 184102b commit cff9e42

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let package = Package(
88
platforms: [
99
.iOS(.v14),
1010
.macOS(.v11),
11-
.macCatalyst(.v14),
11+
.macCatalyst(.v14)
1212
],
1313
products: [
1414
.library(
@@ -17,7 +17,7 @@ let package = Package(
1717
),
1818
],
1919
dependencies: [
20-
.package(url: "https://github.com/livekit/client-sdk-swift.git", from: "2.0.10"),
20+
.package(url: "https://github.com/livekit/client-sdk-swift.git", from: "2.0.14"),
2121
.package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.3.0"),
2222
],
2323
targets: [

[email protected]

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// swift-tools-version:5.9
2+
// (Xcode15.0+)
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "LiveKitComponents",
8+
platforms: [
9+
.iOS(.v14),
10+
.macOS(.v11),
11+
.macCatalyst(.v14),
12+
.tvOS(.v17),
13+
.visionOS(.v1)
14+
],
15+
products: [
16+
.library(
17+
name: "LiveKitComponents",
18+
targets: ["LiveKitComponents"]
19+
),
20+
],
21+
dependencies: [
22+
.package(url: "https://github.com/livekit/client-sdk-swift.git", from: "2.0.14"),
23+
.package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.3.0"),
24+
],
25+
targets: [
26+
.target(
27+
name: "LiveKitComponents",
28+
dependencies: [
29+
.product(name: "LiveKit", package: "client-sdk-swift"),
30+
],
31+
path: "Sources"
32+
),
33+
.testTarget(
34+
name: "LiveKitComponentsTests",
35+
dependencies: ["LiveKitComponents"]
36+
),
37+
]
38+
)

0 commit comments

Comments
 (0)