Skip to content

Commit c827c48

Browse files
committed
Release 1.0.0
1 parent a5bc44d commit c827c48

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

Package.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,14 @@ let package = Package(
1414
name: "SystemExtensionKit",
1515
targets: ["SystemExtensionKit"]),
1616
],
17-
dependencies: [
18-
// Dependencies declare other packages that this package depends on.
19-
// .package(url: /* package url */, from: "1.0.0"),
20-
],
17+
dependencies: [],
2118
targets: [
2219
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
2320
// Targets can depend on other targets in this package, and on products in packages this package depends on.
2421
.target(
2522
name: "SystemExtensionKit",
26-
dependencies: []),
23+
dependencies: [],
24+
path: "Sources"),
2725
.testTarget(
2826
name: "SystemExtensionKitTests",
2927
dependencies: ["SystemExtensionKit"]),

Sources/SystemExtensionKit/SystemExtensionKit.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77

88
import SystemExtensions
99

10+
// Enforce minimum Swift version for all platforms and build systems.
11+
#if swift(<5.5)
12+
#error("SystemExtensionKit doesn't support Swift versions below 5.5.")
13+
#endif
14+
15+
/// Current SystemExtensionKit version. Necessary since SPM doesn't use dynamic libraries. Plus this will be more accurate.
16+
let version = "1.0.0"
17+
1018
public let SystemExtension = SystemExtensionKit.shared
1119

1220
public protocol SystemExtensionDelegate: NSObjectProtocol {

0 commit comments

Comments
 (0)