-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
91 lines (75 loc) · 5.58 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
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "Server",
platforms: [
// Needed for CryptoSwift, for development on MacOS to avoid build errors
.macOS(.v10_12)
],
dependencies: [
//.package(url: "https://github.com/crspybits/SwiftyAWSSNS.git", .branch("master")),
.package(url: "https://github.com/crspybits/SwiftyAWSSNS.git", .upToNextMajor(from: "0.3.0")),
// 7/2/17; See comment in SwiftMain with the same date.
// .Package(url: "https://github.com/RuntimeTools/SwiftMetrics.git", majorVersion: 1, minor: 2),
// .package(path: "../ServerShared"),
// .package(url: "../ServerShared", .branch("master")),
.package(url: "https://github.com/SyncServerII/ServerShared.git", from: "0.9.0"),
//.package(url: "https://github.com/SyncServerII/ServerShared.git", .branch("master")),
.package(url: "https://github.com/SyncServerII/ChangeResolvers.git", from: "0.0.1"),
// .package(url: "https://github.com/SyncServerII/ChangeResolvers.git", .branch("master")),
.package(url: "https://github.com/SyncServerII/ServerAccount.git", from: "0.0.8"),
//.package(url: "https://github.com/SyncServerII/ServerAccount.git", .branch("master")),
.package(url: "https://github.com/SyncServerII/ServerDropboxAccount.git", from: "0.0.2"),
.package(url: "https://github.com/SyncServerII/ServerGoogleAccount.git", from: "0.0.2"),
.package(url: "https://github.com/SyncServerII/ServerMicrosoftAccount.git", from: "0.0.2"),
.package(url: "https://github.com/SyncServerII/ServerAppleSignInAccount.git", from: "0.0.1"),
.package(url: "https://github.com/SyncServerII/ServerFacebookAccount.git", from: "0.0.1"),
.package(url: "https://github.com/SyncServerII/ServerSolidAccount.git", from: "0.0.1"),
.package(url: "https://github.com/IBM-Swift/Kitura-Credentials.git", .upToNextMajor(from: "2.4.1")),
.package(url: "https://github.com/IBM-Swift/Kitura-CredentialsFacebook.git", .upToNextMajor(from: "2.3.1")),
//.package(url: "https://github.com/SyncServerII/Kitura-CredentialsGoogle.git", .branch("master")),
.package(url: "https://github.com/IBM-Swift/Kitura-CredentialsGoogle.git", .upToNextMajor(from: "2.3.1")),
.package(url: "https://github.com/crspybits/CredentialsDropbox.git", from: "0.4.5"),
.package(url: "https://github.com/crspybits/CredentialsMicrosoft.git", from: "0.2.0"),
.package(url: "https://github.com/crspybits/CredentialsAppleSignIn.git", from: "0.0.4"),
.package(url: "https://github.com/crspybits/CredentialsSolid.git", from: "0.0.1"),
// .package(url: "../../repos/Perfect-MySQL", .branch("master")),
// .package(url:"https://github.com/crspybits/Perfect-MySQL.git", from: "3.1.3"),
.package(url:"https://github.com/PerfectlySoft/Perfect-MySQL.git", .upToNextMajor(from: "3.4.1")),
.package(url: "https://github.com/PerfectlySoft/Perfect.git", .upToNextMajor(from: "3.1.4")),
.package(url: "https://github.com/PerfectlySoft/Perfect-Thread.git", .upToNextMajor(from: "3.0.6")),
.package(url: "https://github.com/IBM-Swift/Kitura.git", .upToNextMajor(from: "2.7.0")),
.package(url: "https://github.com/IBM-Swift/HeliumLogger.git", .upToNextMajor(from: "1.8.1")),
// Really, only for testing
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", .upToNextMinor(from: "1.3.1"))
],
targets: [
.target(name: "Main",
dependencies: ["Server"],
swiftSettings: [
.define("DEBUG", .when(platforms: nil, configuration: .debug)),
.define("SERVER")
]),
.target(name: "Server",
dependencies: ["ServerShared", "Credentials", "CredentialsGoogle", "PerfectThread", "PerfectMySQL", "HeliumLogger", "CredentialsFacebook", "CredentialsDropbox", "Kitura", "PerfectLib", "SwiftyAWSSNS", "CredentialsMicrosoft", "ServerAccount", "ServerDropboxAccount", "ServerGoogleAccount", "ServerMicrosoftAccount", "ServerAppleSignInAccount", "ServerFacebookAccount", "ChangeResolvers", "CryptoSwift", "CredentialsAppleSignIn", "ServerSolidAccount", "CredentialsSolid",
],
swiftSettings: [
.define("DEBUG", .when(platforms: nil, configuration: .debug)),
.define("SERVER")
]),
.testTarget(name: "TestsCommon", dependencies: ["Server", "Main"]),
.testTarget(name: "AccountAuthenticationTests", dependencies: ["TestsCommon"]),
.testTarget(name: "DatabaseTests", dependencies: ["TestsCommon"]),
.testTarget(name: "FileControllerTests", dependencies: ["TestsCommon"]),
.testTarget(name: "FileControllerUploadFileTests", dependencies: ["TestsCommon"]),
.testTarget(name: "FileControllerUploadDeletionTests", dependencies: ["TestsCommon"]),
.testTarget(name: "FileControllerBothUploadTests", dependencies: ["TestsCommon"]),
.testTarget(name: "UserControllerTests", dependencies: ["TestsCommon"]),
.testTarget(name: "UploaderTests", dependencies: ["TestsCommon"]),
.testTarget(name: "SharingTests", dependencies: ["TestsCommon"]),
.testTarget(name: "AccountFileTests", dependencies: ["TestsCommon"]),
.testTarget(name: "ChangeResolverTests", dependencies: ["TestsCommon"]),
.testTarget(name: "OtherTests", dependencies: ["TestsCommon"]),
.testTarget(name: "PushNotificationTests", dependencies: ["TestsCommon"])
]
)