-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
98 lines (87 loc) · 3.9 KB
/
Package.swift
File metadata and controls
98 lines (87 loc) · 3.9 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
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:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "iOSBasics",
platforms: [
// iOSSignIn dependency requires iOS 13
.iOS(.v13),
// Needed for PersistentValue
.macOS(.v10_11)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "iOSBasics",
targets: ["iOSBasics"]),
],
dependencies: [
.package(url: "https://github.com/crspybits/FileMD5Hash.git", from: "2.1.0"),
.package(url: "https://github.com/SyncServerII/ChangeResolvers.git", from: "0.0.2"),
//.package(path: "../iOSShared"),
.package(url: "https://github.com/SyncServerII/iOSShared.git", from: "0.0.2"),
//.package(path: "../ServerShared"),
.package(url: "https://github.com/SyncServerII/ServerShared.git", from: "0.0.4"),
//.package(path: "../iOSSignIn"),
.package(url: "https://github.com/SyncServerII/iOSSignIn.git", from: "0.0.2"),
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.12.0"),
.package(url: "https://github.com/mrackwitz/Version.git", from: "0.8.0"),
//.package(name: "Reachability", url: "https://github.com/ashleymills/Reachability.swift.git", from: "5.0.0"),
// For testing only
// .package(path: "../iOSDropbox"),
.package(url: "https://github.com/SyncServerII/iOSDropbox.git", from: "0.0.3"),
.package(url: "https://github.com/SyncServerII/iOSGoogle.git", from: "0.0.3"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "iOSBasics",
dependencies: [
"ServerShared",
"iOSShared", "iOSSignIn", "Version", "FileMD5Hash", "ChangeResolvers",
.product(name: "SQLite", package: "SQLite.swift")
]),
// This wasn't working with .testTarget, but changed it to .target and it works: https://stackoverflow.com/questions/63716793
.target(
name: "TestsCommon",
dependencies: [
"iOSBasics", "iOSShared", "iOSSignIn", "Version",
"iOSDropbox", "iOSGoogle",
"ChangeResolvers",
.product(name: "SQLite", package: "SQLite.swift")],
path: "Tests/TestsCommon",
resources: [
.copy("Example.txt"),
.copy("Cat.jpg")]
),
// The applicable test cases make use of a server running at: http://localhost:8080
.testTarget(
name: "iOSBasicsTests",
dependencies: [
"TestsCommon",
"iOSBasics", "iOSShared", "iOSSignIn", "Version",
"iOSDropbox", "iOSGoogle",
"ChangeResolvers",
.product(name: "SQLite", package: "SQLite.swift")
]),
.testTarget(
name: "SyncServerTests",
dependencies: [
"TestsCommon",
"iOSBasics", "iOSShared", "iOSSignIn", "Version",
"iOSDropbox", "iOSGoogle",
"ChangeResolvers",
.product(name: "SQLite", package: "SQLite.swift")
]),
.testTarget(
name: "ServerTests",
dependencies: [
"TestsCommon",
"iOSBasics", "iOSShared", "iOSSignIn", "Version",
"iOSDropbox", "iOSGoogle",
"ChangeResolvers",
.product(name: "SQLite", package: "SQLite.swift")
])
]
)