-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathPackage.swift
executable file
·98 lines (96 loc) · 4.71 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// swift-tools-version:6.0
import PackageDescription
let package = Package(
name: "Imperial",
platforms: [
.macOS(.v13)
],
products: [
.library(name: "ImperialCore", targets: ["ImperialCore"]),
.library(name: "ImperialAuth0", targets: ["ImperialCore", "ImperialAuth0"]),
.library(name: "ImperialDeviantArt", targets: ["ImperialCore", "ImperialDeviantArt"]),
.library(name: "ImperialDiscord", targets: ["ImperialCore", "ImperialDiscord"]),
.library(name: "ImperialDropbox", targets: ["ImperialCore", "ImperialDropbox"]),
.library(name: "ImperialFacebook", targets: ["ImperialCore", "ImperialFacebook"]),
.library(name: "ImperialGitHub", targets: ["ImperialCore", "ImperialGitHub"]),
.library(name: "ImperialGitlab", targets: ["ImperialCore", "ImperialGitlab"]),
.library(name: "ImperialGoogle", targets: ["ImperialCore", "ImperialGoogle"]),
.library(name: "ImperialImgur", targets: ["ImperialCore", "ImperialImgur"]),
.library(name: "ImperialKeycloak", targets: ["ImperialCore", "ImperialKeycloak"]),
.library(name: "ImperialMicrosoft", targets: ["ImperialCore", "ImperialMicrosoft"]),
.library(name: "ImperialMixcloud", targets: ["ImperialCore", "ImperialMixcloud"]),
.library(name: "ImperialShopify", targets: ["ImperialCore", "ImperialShopify"]),
.library(
name: "Imperial",
targets: [
"ImperialCore",
"ImperialAuth0",
"ImperialDeviantArt",
"ImperialDiscord",
"ImperialDropbox",
"ImperialFacebook",
"ImperialGitHub",
"ImperialGitlab",
"ImperialGoogle",
"ImperialImgur",
"ImperialKeycloak",
"ImperialMicrosoft",
"ImperialMixcloud",
"ImperialShopify",
]
),
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "4.110.1"),
.package(url: "https://github.com/vapor/jwt-kit.git", from: "5.1.1"),
],
targets: [
.target(
name: "ImperialCore",
dependencies: [
.product(name: "Vapor", package: "vapor"),
.product(name: "JWTKit", package: "jwt-kit"),
],
swiftSettings: swiftSettings
),
.target(name: "ImperialAuth0", dependencies: ["ImperialCore"], swiftSettings: swiftSettings),
.target(name: "ImperialDeviantArt", dependencies: ["ImperialCore"], swiftSettings: swiftSettings),
.target(name: "ImperialDiscord", dependencies: ["ImperialCore"], swiftSettings: swiftSettings),
.target(name: "ImperialDropbox", dependencies: ["ImperialCore"], swiftSettings: swiftSettings),
.target(name: "ImperialFacebook", dependencies: ["ImperialCore"], swiftSettings: swiftSettings),
.target(name: "ImperialGitHub", dependencies: ["ImperialCore"], swiftSettings: swiftSettings),
.target(name: "ImperialGitlab", dependencies: ["ImperialCore"], swiftSettings: swiftSettings),
.target(name: "ImperialGoogle", dependencies: ["ImperialCore"], swiftSettings: swiftSettings),
.target(name: "ImperialImgur", dependencies: ["ImperialCore"], swiftSettings: swiftSettings),
.target(name: "ImperialKeycloak", dependencies: ["ImperialCore"], swiftSettings: swiftSettings),
.target(name: "ImperialMicrosoft", dependencies: ["ImperialCore"], swiftSettings: swiftSettings),
.target(name: "ImperialMixcloud", dependencies: ["ImperialCore"], swiftSettings: swiftSettings),
.target(name: "ImperialShopify", dependencies: ["ImperialCore"], swiftSettings: swiftSettings),
.testTarget(
name: "ImperialTests",
dependencies: [
.target(name: "ImperialCore"),
.target(name: "ImperialAuth0"),
.target(name: "ImperialDeviantArt"),
.target(name: "ImperialDiscord"),
.target(name: "ImperialDropbox"),
.target(name: "ImperialFacebook"),
.target(name: "ImperialGitHub"),
.target(name: "ImperialGitlab"),
.target(name: "ImperialGoogle"),
.target(name: "ImperialImgur"),
.target(name: "ImperialKeycloak"),
.target(name: "ImperialMicrosoft"),
.target(name: "ImperialMixcloud"),
.target(name: "ImperialShopify"),
.product(name: "VaporTesting", package: "vapor"),
],
swiftSettings: swiftSettings
),
]
)
var swiftSettings: [SwiftSetting] {
[
.enableUpcomingFeature("ExistentialAny")
]
}