forked from Oliver-Binns/Advent-of-Code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
40 lines (34 loc) · 1.41 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
// swift-tools-version: 5.6
import PackageDescription
let inputFiles: [Resource] = (1...25)
.map { "Day \($0)/Day\($0).input" }
.map { .process($0) }
let package = Package(
name: "AdventOfCode",
platforms: [
.iOS(.v15),
.macOS(.v12)
],
dependencies: [
// Some recommended packages here, you might like to try them!
// Sequence and collection algorithms
// i.e. rotations, permutations, etc.
.package(url: "https://github.com/apple/swift-algorithms", from: "1.0.0"),
// Extra data structure implementations
// i.e. OrderedSet, Deque, Heap
.package(url: "https://github.com/apple/swift-collections.git",
.upToNextMinor(from: "1.0.3")),
// Support for numerical computing, including complex numbers
//.package(url: "https://github.com/apple/swift-numerics", from: "1.0.0"),
],
targets: [
.executableTarget(name: "AdventOfCode", dependencies: [
.product(name: "Algorithms",
package: "swift-algorithms"),
.productItem(name: "Collections",
package: "swift-collections")
],
resources: inputFiles),
.testTarget(name: "AdventOfCodeTests", dependencies: ["AdventOfCode"], resources: inputFiles)
]
)