-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
107 lines (105 loc) · 3.2 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
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
106
107
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "SwiftMail",
platforms: [
.macOS("11.0"),
.iOS("14.0"),
.tvOS("14.0"),
.watchOS("7.0"),
.macCatalyst("14.0")
],
products: [
.library(
name: "SwiftMail",
targets: ["SwiftIMAP", "SwiftSMTP"]),
.library(
name: "SwiftIMAP",
targets: ["SwiftIMAP"]),
.library(
name: "SwiftSMTP",
targets: ["SwiftSMTP"]),
.library(
name: "SwiftMailCore",
targets: ["SwiftMailCore"]),
.executable(
name: "SwiftIMAPCLI",
targets: ["SwiftIMAPCLI"]),
.executable(
name: "SwiftSMTPCLI",
targets: ["SwiftSMTPCLI"])
],
dependencies: [
.package(url: "https://github.com/thebarndog/swift-dotenv", from: "2.1.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-nio", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-nio-imap", branch: "main"),
.package(url: "https://github.com/apple/swift-nio-ssl", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-testing", branch: "main"),
],
targets: [
.target(
name: "SwiftMailCore",
dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "Logging", package: "swift-log"),
]
),
.target(
name: "SwiftIMAP",
dependencies: [
"SwiftMailCore",
.product(name: "NIOIMAP", package: "swift-nio-imap"),
]
),
.target(
name: "SwiftSMTP",
dependencies: [
"SwiftMailCore",
]
),
.executableTarget(
name: "SwiftIMAPCLI",
dependencies: [
"SwiftIMAP",
.product(name: "SwiftDotenv", package: "swift-dotenv"),
],
path: "Demos/SwiftIMAPCLI"
),
.executableTarget(
name: "SwiftSMTPCLI",
dependencies: [
"SwiftSMTP",
.product(name: "SwiftDotenv", package: "swift-dotenv"),
],
path: "Demos/SwiftSMTPCLI"
),
.testTarget(
name: "SwiftIMAPTests",
dependencies: [
"SwiftIMAP",
.product(name: "Testing", package: "swift-testing")
],
resources: [
.copy("Resources")
]
),
.testTarget(
name: "SwiftSMTPTests",
dependencies: [
"SwiftSMTP",
"SwiftMailCore",
.product(name: "Testing", package: "swift-testing")
]
),
.testTarget(
name: "SwiftMailCoreTests",
dependencies: [
"SwiftMailCore",
.product(name: "Testing", package: "swift-testing")
]
),
]
)