|
1 |
| -// swift-tools-version:5.3 |
2 |
| -// The swift-tools-version declares the minimum version of Swift required to build this package. |
| 1 | +// swift-tools-version:5.7 |
| 2 | +// (Xcode14.0+) |
3 | 3 |
|
4 | 4 | import PackageDescription
|
5 | 5 |
|
6 | 6 | let package = Package(
|
7 | 7 | name: "LiveKitComponents",
|
8 | 8 | platforms: [
|
9 | 9 | .iOS(.v14),
|
10 |
| - .macOS(.v11) |
| 10 | + .macOS(.v11), |
| 11 | + .macCatalyst(.v14), |
11 | 12 | ],
|
12 | 13 | products: [
|
13 |
| - // Products define the executables and libraries a package produces, and make them visible to other packages. |
14 | 14 | .library(
|
15 | 15 | name: "LiveKitComponents",
|
16 | 16 | targets: ["LiveKitComponents"]
|
17 |
| - ) |
| 17 | + ), |
18 | 18 | ],
|
19 | 19 | dependencies: [
|
20 |
| - // Dependencies declare other packages that this package depends on. |
21 |
| - // .package(url: /* package url */, from: "1.0.0"), |
22 |
| - .package(name: "LiveKit", url: "https://github.com/livekit/client-sdk-swift.git", .exact("1.0.13")), |
23 |
| - .package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.3.0") |
| 20 | + .package(url: "https://github.com/livekit/client-sdk-swift.git", exact: "2.0.4"), |
| 21 | + .package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.3.0"), |
24 | 22 | ],
|
25 | 23 | targets: [
|
26 |
| - // Targets are the basic building blocks of a package. A target can define a module or a test suite. |
27 |
| - // Targets can depend on other targets in this package, and on products in packages this package depends on. |
28 | 24 | .target(
|
29 | 25 | name: "LiveKitComponents",
|
30 |
| - dependencies: ["LiveKit"], |
| 26 | + dependencies: [ |
| 27 | + .product(name: "LiveKit", package: "client-sdk-swift"), |
| 28 | + ], |
31 | 29 | path: "Sources"
|
32 | 30 | ),
|
33 | 31 | .testTarget(
|
34 | 32 | name: "LiveKitComponentsTests",
|
35 | 33 | dependencies: ["LiveKitComponents"]
|
36 |
| - ) |
| 34 | + ), |
37 | 35 | ]
|
38 | 36 | )
|
0 commit comments