This repository has been archived by the owner on Dec 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 139
/
Package.swift
58 lines (56 loc) · 2.28 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "SlackKit",
platforms: [
.macOS(.v10_15), .iOS(.v10), .tvOS(.v10)
],
products: [
.library(name: "SlackKit", targets: ["SlackKit"]),
.library(name: "SKClient", targets: ["SKClient"]),
.library(name: "SKCore", targets: ["SKCore"]),
.library(name: "SKRTMAPI", targets: ["SKRTMAPI"]),
.library(name: "SKServer", targets: ["SKServer"]),
.library(name: "SKWebAPI", targets: ["SKWebAPI"])
],
dependencies: [
.package(url: "https://github.com/httpswift/swifter", from: .init(1, 5, 0)),
.package(url: "https://github.com/vapor/websocket-kit", from: .init(2, 5, 0)),
.package(url: "https://github.com/daltoniam/Starscream", from: .init(4, 0, 4)),
],
targets: [
.target(name: "SlackKit",
dependencies: ["SKCore", "SKClient", "SKRTMAPI", "SKServer"],
path: "SlackKit/Sources"),
.target(name: "SKClient",
dependencies: ["SKCore"],
path: "SKClient/Sources"),
.target(name: "SKCore",
path: "SKCore/Sources"),
.target(name: "SKRTMAPI",
dependencies: [
"SKCore",
"SKWebAPI",
.product(name: "Starscream", package: "Starscream", condition: .when(platforms: [.macOS, .iOS, .tvOS])),
.product(name: "WebSocketKit", package: "websocket-kit", condition: .when(platforms: [.macOS, .linux])),
],
path: "SKRTMAPI/Sources"),
.target(name: "SKServer",
dependencies: ["SKCore", "SKWebAPI",
.product(name: "Swifter", package: "swifter")],
path: "SKServer/Sources"),
.target(name: "SKWebAPI",
dependencies: ["SKCore"],
path: "SKWebAPI/Sources"),
.testTarget(name: "SlackKitTests",
dependencies: ["SlackKit", "SKCore", "SKClient", "SKRTMAPI", "SKServer"],
path: "SlackKitTests",
exclude: [
"Supporting Files"
],
resources: [
.copy("Resources")
])
],
swiftLanguageVersions: [.v5]
)