-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
60 lines (50 loc) · 1.93 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Base",
platforms: [
.macOS(.v13)//, .iOS(.v15)
],
products: [
.library(
name: "Base",
targets: ["Base"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-algorithms", from: "1.2.0"),
.package(
url: "https://github.com/apple/swift-collections.git", from: "1.1.4"),
//https://github.com/JohnSundell/CollectionConcurrencyKit
// .package(url: "../../Quick/Quick", from: "1.0.0"),
// .package(url: "../../Quick/Nimble", from: "1.0.0"),
// QuickObjCRuntime build fails on ios and mac
// .package(url: "https://github.com/Quick/Quick", from: "5.0.0"),
// .package(url: "https://github.com/Quick/Nimble", from: "10.0.0"),
],
targets: [
.target(
name: "Base",
dependencies: [
.product(name: "Algorithms", package: "swift-algorithms"),
.product(name: "Collections", package: "swift-collections")
]
// currently Packages with unsafe flags cannot be depended on
//https://stackoverflow.com/questions/66462498/how-to-override-the-unsafeflags-behavior-of-swift-package-manager
//swiftSettings: [.unsafeFlags(["-suppress-warnings"])]
),
.target(
name: "Xcore",
dependencies: ["Base"]),
// .target(
// name: "VariantKit", // not used currently
// dependencies: ["Base"]),
// .testTarget(
// name: "BaseTests",
// dependencies: [
// "Base",
// // .product(name: "Quick", package: "Quick"),
// // .product(name: "NimbleLib", package: "Quick")
// ]
// ),
]
)