-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathPackage.swift
34 lines (27 loc) · 907 Bytes
/
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
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "XMPP",
// TODO: We could support a broader range if using Swift-NIO directly for all platforms
platforms: [
.macOS(.v10_14),
.iOS(.v12),
.tvOS(.v12),
// .watchOS(.v6)
],
products: [
.library(name: "XMPP", targets: ["XMPP"]),
.executable(name: "XMPPDemo", targets: ["XMPPDemo"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.0.0"),
],
targets: [
// Core lib
.target(name: "XMPP", dependencies: ["NIO", "NIOSSL"]),
// Demo and tests
.target(name: "XMPPDemo", dependencies: ["XMPP"]),
.testTarget(name: "XMPPTests", dependencies: ["XMPP"]),
]
)