File tree Expand file tree Collapse file tree
Sources/NetworkConnectivityKit Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
44import PackageDescription
@@ -30,5 +30,6 @@ let package = Package(
3030 name: " NetworkConnectivityKitTests " ,
3131 dependencies: [ " NetworkConnectivityKit " ]
3232 ) ,
33- ]
33+ ] ,
34+ swiftLanguageModes: [ . v6]
3435)
Original file line number Diff line number Diff line change 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
44import PackageDescription
@@ -30,6 +30,5 @@ let package = Package(
3030 name: " NetworkConnectivityKitTests " ,
3131 dependencies: [ " NetworkConnectivityKit " ]
3232 ) ,
33- ] ,
34- swiftLanguageModes: [ . v6]
33+ ]
3534)
Original file line number Diff line number Diff line change 88import 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.
2025public enum NetworkConnectivityKit : Sendable { }
2126
2227// MARK: - Connectivity Public API
You can’t perform that action at this time.
0 commit comments