-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
37 lines (34 loc) · 1.3 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
// swift-tools-version:5.2
import PackageDescription
let package = Package(
name: "TelegramBot",
platforms: [
.macOS(.v10_15),
],
products: [
.library(
name: "TelegramBot",
targets: ["TelegramBot"]),
.library(
name: "TelegramBotVapor",
targets: ["TelegramBotVapor"]),
.library(
name: "TelegramBotPromiseKit",
targets: ["TelegramBotPromiseKit"]),
],
dependencies: [
// Test dependencies
.package(url: "https://github.com/Quick/Quick.git", from: "3.0.0"),
.package(url: "https://github.com/Quick/Nimble.git", from: "8.0.0"),
// Vapor for vapor related requests, optional.
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
// PromiseKit dependency, optional.
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.0.0"),
],
targets: [
.target(name: "TelegramBot", dependencies: []),
.target(name: "TelegramBotVapor", dependencies: ["TelegramBot", .product(name: "Vapor", package: "vapor")]),
.target(name: "TelegramBotPromiseKit", dependencies: ["TelegramBot", "PromiseKit"]),
.testTarget(name: "TelegramBotTests", dependencies: ["TelegramBot", "Quick", "Nimble"])
]
)