-
Notifications
You must be signed in to change notification settings - Fork 228
Expand file tree
/
Copy pathPackage@swift-6.2.swift
More file actions
105 lines (103 loc) · 3.24 KB
/
Copy pathPackage@swift-6.2.swift
File metadata and controls
105 lines (103 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// swift-tools-version:6.2
// (Xcode26.0+)
import PackageDescription
let package = Package(
name: "LiveKit",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.macCatalyst(.v14),
.tvOS(.v17),
.visionOS(.v26),
],
products: [
.library(
name: "LiveKit",
targets: ["LiveKit"],
),
],
dependencies: [
// LK-Prefixed Dynamic WebRTC XCFramework
.package(url: "https://github.com/livekit/webrtc-xcframework.git", exact: "150.7871.01"),
.package(url: "https://github.com/livekit/livekit-uniffi-xcframework.git", exact: "0.1.9"),
// Test-only: conformance oracle for the nanopb facades.
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.31.0"),
// Only used for DocC generation
.package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.3.0"),
],
targets: [
.target(
name: "CLiveKitProto",
exclude: ["LICENSE-nanopb.txt", "module.modulemap"],
publicHeadersPath: "include",
cSettings: [
// ABI defines live in include/lk_pb_config.h (included from
// pb.h); lk_abi_check.c guards them at compile time.
.headerSearchPath("include"),
],
),
.target(
name: "LiveKitNanopb",
dependencies: ["CLiveKitProto"],
),
.target(
name: "LKObjCHelpers",
publicHeadersPath: "include",
),
.target(
name: "LiveKit",
dependencies: [
.product(name: "LiveKitWebRTC", package: "webrtc-xcframework"),
.product(name: "LiveKitUniFFI", package: "livekit-uniffi-xcframework"),
"LiveKitNanopb",
"LKObjCHelpers",
],
exclude: [
"Broadcast/NOTICE",
],
resources: [
.process("PrivacyInfo.xcprivacy"),
],
),
.testTarget(
// SwiftProtobuf is a test-only conformance oracle here: the same
// protos are compiled with protoc-gen-swift so every nanopb-encoded
// payload can be verified against a second, independent implementation.
name: "LiveKitNanopbTests",
dependencies: [
"LiveKit",
"LiveKitNanopb",
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
],
),
.target(
name: "LiveKitTestSupport",
dependencies: [
"LiveKit",
],
path: "Tests/LiveKitTestSupport",
),
.testTarget(
name: "LiveKitCoreTests",
dependencies: [
"LiveKit",
"LiveKitTestSupport",
],
),
.testTarget(
name: "LiveKitAudioTests",
dependencies: [
"LiveKit",
"LiveKitTestSupport",
],
),
.testTarget(
name: "LiveKitObjCTests",
dependencies: [
"LiveKit",
"LiveKitTestSupport",
],
),
],
swiftLanguageModes: [.v5, .v6],
)