-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathPackage.swift
80 lines (78 loc) · 2.67 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
// swift-tools-version:6.0
import PackageDescription
let package = Package(
name: "wallet",
platforms: [
.macOS(.v13)
],
products: [
.library(name: "VaporWalletPasses", targets: ["VaporWalletPasses"]),
.library(name: "VaporWalletOrders", targets: ["VaporWalletOrders"]),
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "4.111.0"),
.package(url: "https://github.com/vapor/fluent.git", from: "4.12.0"),
.package(url: "https://github.com/fpseverino/fluent-wallet.git", from: "0.1.0"),
.package(url: "https://github.com/vapor/apns.git", from: "4.2.0"),
// used in tests
.package(url: "https://github.com/vapor/fluent-sqlite-driver.git", from: "4.8.0"),
],
targets: [
.target(
name: "VaporWallet",
dependencies: [
.product(name: "Vapor", package: "vapor"),
.product(name: "Fluent", package: "fluent"),
.product(name: "VaporAPNS", package: "apns"),
],
swiftSettings: swiftSettings
),
// MARK: - Wallet Passes
.target(
name: "VaporWalletPasses",
dependencies: [
.target(name: "VaporWallet"),
.product(name: "FluentWalletPasses", package: "fluent-wallet"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "VaporWalletPassesTests",
dependencies: [
.target(name: "VaporWalletPasses"),
.product(name: "VaporTesting", package: "vapor"),
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
],
resources: [
.copy("SourceFiles")
],
swiftSettings: swiftSettings
),
// MARK: - Wallet Orders
.target(
name: "VaporWalletOrders",
dependencies: [
.target(name: "VaporWallet"),
.product(name: "FluentWalletOrders", package: "fluent-wallet"),
],
swiftSettings: swiftSettings
),
.testTarget(
name: "VaporWalletOrdersTests",
dependencies: [
.target(name: "VaporWalletOrders"),
.product(name: "VaporTesting", package: "vapor"),
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
],
resources: [
.copy("SourceFiles")
],
swiftSettings: swiftSettings
),
]
)
var swiftSettings: [SwiftSetting] {
[
.enableUpcomingFeature("ExistentialAny")
]
}