Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
44 lines (40 loc) · 1.66 KB
/
Copy pathPackage.swift
File metadata and controls
44 lines (40 loc) · 1.66 KB
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
// swift-tools-version:5.5
import PackageDescription
let deps: [(String, String)] = [
("TGUIKit", "../TGUIKit"),
("InputDataUI", "../InputDataUI"),
("GeneralRows", "../GeneralRows"),
("Localization", "../Localization"),
("TelegramContext", "../TelegramContext"),
("TelegramUtils", "../TelegramUtils"),
("TelegramTheme", "../TelegramTheme"),
("ColorPalette", "../ColorPalette"),
("AlertsUI", "../AlertsUI"),
("LocalAnimations", "../LocalAnimations"),
("DateUtils", "../DateUtils"),
("TelegramIconsTheme", "../TelegramIconsTheme"),
("TelegramMedia", "../TelegramMedia"),
("InlineStickerLayer", "../InlineStickerLayer"),
]
let package = Package(
name: "PasskeysUI",
platforms: [.macOS(.v10_13)],
products: [
.library(name: "PasskeysUI", targets: ["PasskeysUI"]),
],
dependencies: [
.package(name: "SSignalKit", path: "../../submodules/telegram-ios/submodules/SSignalKit"),
.package(name: "TelegramCore", path: "../../submodules/telegram-ios/submodules/TelegramCore"),
.package(name: "Postbox", path: "../../submodules/telegram-ios/submodules/Postbox"),
] + deps.map { .package(name: $0.0, path: $0.1) },
targets: [
.target(
name: "PasskeysUI",
dependencies: [
.product(name: "SwiftSignalKit", package: "SSignalKit", condition: nil),
.product(name: "TelegramCore", package: "TelegramCore", condition: nil),
.product(name: "Postbox", package: "Postbox", condition: nil),
] + deps.map { .product(name: $0.0, package: $0.0, condition: nil) },
path: "Sources/PasskeysUI"),
]
)