-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
45 lines (43 loc) · 2.06 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
// swift-tools-version:5.8
import PackageDescription
let package = Package(
name: "geometrizebot",
platforms: [
.macOS(.v12)
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "4.93.0"),
.package(url: "https://github.com/vapor/leaf", from: "4.3.0"),
.package(url: "https://github.com/vapor/leaf-kit", from: "1.10.5"),
.package(url: "https://github.com/nerzh/telegram-vapor-bot", from: "2.6.0"),
.package(url: "https://github.com/valeriyvan/swift-geometrize.git", from: "1.2.1"),
.package(url: "https://github.com/tayloraswift/swift-png.git", from: "4.4.2"),
.package(url: "https://github.com/tayloraswift/jpeg.git", from: "1.1.0"),
.package(url: "https://github.com/awslabs/aws-sdk-swift", exact: "0.17.0")
],
targets: [
.executableTarget(
name: "App",
dependencies: [
.product(name: "Vapor", package: "vapor"),
.product(name: "Leaf", package: "leaf"),
.product(name: "LeafKit", package: "leaf-kit"),
.product(name: "TelegramVaporBot", package: "telegram-vapor-bot"),
.product(name: "Geometrize", package: "swift-geometrize"),
.product(name: "JPEG", package: "jpeg"),
.product(name: "PNG", package: "swift-png"),
.product(name: "AWSS3", package: "aws-sdk-swift"),
],
swiftSettings: [
// Enable better optimizations when building in Release configuration. Despite the use of
// the `.unsafeFlags` construct required by SwiftPM, this flag is recommended for Release
// builds. See <https://www.swift.org/server/guides/building.html#building-for-production> for details.
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))
]
),
.testTarget(name: "AppTests", dependencies: [
.target(name: "App"),
.product(name: "XCTVapor", package: "vapor"),
])
]
)