forked from Oliver-Binns/Advent-of-Code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
33 lines (28 loc) · 1.14 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
// swift-tools-version: 5.7
import PackageDescription
let inputFiles: [Resource] = (1...25)
.map { "Day \(String(format: "%02d", $0))/Day\($0).input" }
.map { .process($0) }
let package = Package(
name: "AdventOfCode",
platforms: [
.iOS(.v16),
.macOS(.v13)
],
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.1.0")),
// Support for numerical computing, including complex numbers
//.package(url: "https://github.com/apple/swift-numerics", from: "1.0.0"),
],
targets: [
.executableTarget(name: "AdventOfCode", resources: inputFiles),
.testTarget(name: "AdventOfCodeTests", dependencies: ["AdventOfCode"], resources: inputFiles)
]
)