Skip to content

Commit f4f9134

Browse files
committed
raise minimal swift version to 5.10
1 parent 0a5d5c5 commit f4f9134

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

Package.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 5.9
1+
// swift-tools-version: 6.0
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -30,5 +30,6 @@ let package = Package(
3030
name: "NetworkConnectivityKitTests",
3131
dependencies: ["NetworkConnectivityKit"]
3232
),
33-
]
33+
],
34+
swiftLanguageModes: [.v6]
3435
)
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.0
1+
// swift-tools-version: 5.10
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -30,6 +30,5 @@ let package = Package(
3030
name: "NetworkConnectivityKitTests",
3131
dependencies: ["NetworkConnectivityKit"]
3232
),
33-
],
34-
swiftLanguageModes: [.v6]
33+
]
3534
)

Sources/NetworkConnectivityKit/NetworkConnectivityKit.swift

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,20 @@
88
import Foundation
99

1010
// Enforce minimum Swift version for all platforms and build systems.
11-
#if swift(<5.9)
12-
#error("NetworkConnectivityKit doesn't support Swift versions below 5.9.")
11+
#if swift(<5.10)
12+
#error("NetworkConnectivityKit doesn't support Swift versions below 5.10.")
1313
#endif
1414

15-
/// Current NetworkConnectivityKit version 1.0.0. Necessary since SPM doesn't use dynamic libraries. Plus this will be more accurate.
16-
let version = "1.0.0"
15+
/// Current NetworkConnectivityKit version 1.1.0. Necessary since SPM doesn't use dynamic libraries. Plus this will be more accurate.
16+
let version = "1.1.0"
1717

1818
// MARK: - NetworkConnectivityKit Namespace
1919

20+
/// A lightweight Swift library for testing network connectivity using multiple validation methods.
21+
///
22+
/// NetworkConnectivityKit provides a reliable way to check internet connectivity by attempting
23+
/// connections to various well-known endpoints. It supports concurrent testing of multiple
24+
/// endpoints and returns as soon as any connection succeeds.
2025
public enum NetworkConnectivityKit: Sendable {}
2126

2227
// MARK: - Connectivity Public API

0 commit comments

Comments
 (0)