2024-10-19 17:39:04 +03:00
|
|
|
// swift-tools-version: 6.0
|
|
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
var packageDependencies: [Package.Dependency] = [
|
2024-10-19 23:14:02 +03:00
|
|
|
.package(url: "https://github.com/vapor/vapor.git", .upToNextMajor(from: "4.57.0"))
|
2024-10-19 17:39:04 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
var targetDependencies: [PackageDescription.Target.Dependency] = [
|
2024-10-19 23:14:02 +03:00
|
|
|
.product(name: "Vapor", package: "vapor")
|
2024-10-19 17:39:04 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
packageDependencies.append(.package(url: "https://github.com/nerzh/swift-telegram-sdk", .upToNextMajor(from: "3.0.3")))
|
|
|
|
targetDependencies.append(.product(name: "SwiftTelegramSdk", package: "swift-telegram-sdk"))
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
name: "TelegramModeratorBot",
|
|
|
|
dependencies: packageDependencies,
|
|
|
|
targets: [
|
|
|
|
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
|
|
|
// Targets can depend on other targets in this package and products from dependencies.
|
|
|
|
.executableTarget(
|
|
|
|
name: "TelegramModeratorBot",
|
|
|
|
dependencies: targetDependencies
|
2024-10-19 23:14:02 +03:00
|
|
|
)
|
2024-10-19 17:39:04 +03:00
|
|
|
]
|
|
|
|
)
|