diff --git a/README.md b/README.md index cf97acd7..4f836cbb 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,11 @@ NetworkReachability's documentation is built with [DocC](https://developer.apple [![Documentation](Images/Documentation.svg)](https://reachability.tools/docs/documentation/networkreachability) +Additional installation instructions are available on the [Swift Package Index](https://swiftpackageindex.com/vsanthanam/NetworkReachability) + +[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fvsanthanam%2FNetworkReachability%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/vsanthanam/NetworkReachability) +[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fvsanthanam%2FNetworkReachability%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/vsanthanam/NetworkReachability) + ## License **NetworkReachability** is available under the MIT license. See the LICENSE file for more information. diff --git a/Tests/NetworkReachabilityTests/ReachabilityMonitorTests.swift b/Tests/NetworkReachabilityTests/ReachabilityMonitorTests.swift index 5fe29207..02ed4380 100644 --- a/Tests/NetworkReachabilityTests/ReachabilityMonitorTests.swift +++ b/Tests/NetworkReachabilityTests/ReachabilityMonitorTests.swift @@ -24,19 +24,12 @@ // SOFTWARE. import Foundation -#if canImport(Combine) - import Combine -#endif @testable import NetworkReachability import XCTest @available(macOS 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *) final class ReachabilityMonitorTests: XCTestCase { - #if canImport(Combine) - var cancellable: AnyCancellable? - #endif - func test_get_sync() { do { let reachability = try ReachabilityMonitor.reachability @@ -140,10 +133,4 @@ final class ReachabilityMonitorTests: XCTestCase { } } } - - deinit { - if #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) { - cancellable?.cancel() - } - } }