-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
62 lines (58 loc) · 2.24 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
// swift-tools-version: 5.8
import PackageDescription
let enables = ["AccessLevelOnImport",
"BareSlashRegexLiterals",
"ConciseMagicFile",
"DeprecateApplicationMain",
"DisableOutwardActorInference",
"DynamicActorIsolation",
"ExistentialAny",
"ForwardTrailingClosures",
//"FullTypedThrows", // Not ready yet. https://forums.swift.org/t/where-is-fulltypedthrows/72346/15
"GlobalConcurrency",
"ImplicitOpenExistentials",
"ImportObjcForwardDeclarations",
"InferSendableFromCaptures",
"InternalImportsByDefault",
"IsolatedDefaultValues",
"StrictConcurrency"]
let settings: [SwiftSetting] = enables.flatMap {
[.enableUpcomingFeature($0), .enableExperimentalFeature($0)]
}
let package = Package(
name: "NetworkScanner",
platforms: [
.iOS(.v15),
.macOS(.v12),
.macCatalyst(.v15),
.tvOS(.v15),
.watchOS(.v8)
],
products: [
.library(
name: "NetworkScanner",
targets: ["NetworkScanner"]),
.executable(
name: "NetworkScannerDemo",
targets: ["NetworkScannerDemo"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-async-algorithms.git", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/apple/swift-log", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/wadetregaskis/NetworkInterfaceInfo.git", .upToNextMajor(from: "5.0.0")),
],
targets: [
.target(
name: "NetworkScanner",
dependencies: [
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
.product(name: "Logging", package: "swift-log"),
.product(name: "NetworkInterfaceInfo", package: "NetworkInterfaceInfo"),
.product(name: "NetworkInterfaceChangeMonitoring", package: "NetworkInterfaceInfo")],
swiftSettings: settings),
.executableTarget(
name: "NetworkScannerDemo",
dependencies: ["NetworkScanner"],
swiftSettings: settings),
]
)