-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
59 lines (55 loc) · 1.49 KB
/
Package.swift
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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "pulsar-client-swift",
platforms: [.macOS(.v13), .iOS(.v16), .tvOS(.v16), .watchOS(.v9)],
products: [
.library(
name: "Pulsar",
targets: ["Pulsar"]
),
.library(
name: "SchemaTypes",
targets: ["SchemaTypes"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", exact: "2.81.0"),
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.28.2"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.29.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.6.1")
],
targets: [
.target(
name: "Pulsar",
dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
.product(name: "Logging", package: "swift-log"),
.target(name: "SchemaTypes")
]
),
.executableTarget(
name: "PulsarExample",
dependencies: [
"Pulsar"
],
resources: [
.process("Resources")
]
),
.testTarget(
name: "PulsarTests",
dependencies: ["Pulsar"]
),
.target(name: "SchemaTypes")
],
swiftLanguageModes: [.v6]
)
for target in package.targets where target.type != .plugin {
var settings = target.swiftSettings ?? []
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
target.swiftSettings = settings
}