diff --git a/CHANGELOG.md b/CHANGELOG.md index babb7e1..76a1149 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.1] - 2022-03-20 +### Changed +- Merged [PR #4](https://github.com/rwbutler/Hyperconnectivity/pull/4) to ensure that cached results are never used as part of connectivity checks. +- Adjusted tests to pass both locally as well as on Travis CI. + ## [1.1.0] - 2020-08-23 ### Added - Compatibility with macOS, watchOS and tvOS via Swift Package Manager. diff --git a/Example/Hyperconnectivity.xcodeproj/project.pbxproj b/Example/Hyperconnectivity.xcodeproj/project.pbxproj index e6c4cb6..6ae7171 100644 --- a/Example/Hyperconnectivity.xcodeproj/project.pbxproj +++ b/Example/Hyperconnectivity.xcodeproj/project.pbxproj @@ -581,6 +581,7 @@ INFOPLIST_FILE = Hyperconnectivity/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MARKETING_VERSION = 1.1.1; MODULE_NAME = ExampleApp; PRODUCT_BUNDLE_IDENTIFIER = "com.rwbutler.demo.Hyperconnectivity-Example"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -597,6 +598,7 @@ INFOPLIST_FILE = Hyperconnectivity/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MARKETING_VERSION = 1.1.1; MODULE_NAME = ExampleApp; PRODUCT_BUNDLE_IDENTIFIER = "com.rwbutler.demo.Hyperconnectivity-Example"; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Example/Hyperconnectivity/Info.plist b/Example/Hyperconnectivity/Info.plist index eb18faa..15c1bef 100644 --- a/Example/Hyperconnectivity/Info.plist +++ b/Example/Hyperconnectivity/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0 + $(MARKETING_VERSION) CFBundleSignature ???? CFBundleVersion diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj index f276c4c..3eb5d82 100644 --- a/Example/Pods/Pods.xcodeproj/project.pbxproj +++ b/Example/Pods/Pods.xcodeproj/project.pbxproj @@ -763,7 +763,7 @@ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 1.1.0; + MARKETING_VERSION = 1.1.1; MODULEMAP_FILE = "Target Support Files/Hyperconnectivity/Hyperconnectivity.modulemap"; PRODUCT_BUNDLE_IDENTIFIER = com.rwbutler.Hyperconnectivity; PRODUCT_MODULE_NAME = Hyperconnectivity; @@ -928,7 +928,7 @@ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 1.1.0; + MARKETING_VERSION = 1.1.1; MODULEMAP_FILE = "Target Support Files/Hyperconnectivity/Hyperconnectivity.modulemap"; PRODUCT_BUNDLE_IDENTIFIER = com.rwbutler.Hyperconnectivity; PRODUCT_MODULE_NAME = Hyperconnectivity; diff --git a/Hyperconnectivity.podspec b/Hyperconnectivity.podspec index ff491f1..0f041be 100644 --- a/Hyperconnectivity.podspec +++ b/Hyperconnectivity.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Hyperconnectivity' - s.version = '1.1.0' + s.version = '1.1.1' s.swift_version = '5.0' s.summary = 'Modern replacement for Apple\'s Reachability written in Swift and made elegant using Combine' s.description = <<-DESC diff --git a/Hyperconnectivity/Classes/Core/Hyperconnectivity.swift b/Hyperconnectivity/Classes/Core/Hyperconnectivity.swift index f241ad0..4f40a57 100644 --- a/Hyperconnectivity/Classes/Core/Hyperconnectivity.swift +++ b/Hyperconnectivity/Classes/Core/Hyperconnectivity.swift @@ -51,7 +51,7 @@ public class Hyperconnectivity { private extension Hyperconnectivity { private func checkConnectivity(of path: NWPath, using configuration: Configuration) { - // Ensure that we never use cached results, including with custom `URLSessionConfiguration`s. + // Ensure that we never use cached results, including where using a custom `URLSessionConfiguration`. let urlSessionConfiguration = configuration.urlSessionConfiguration.copy() as! URLSessionConfiguration urlSessionConfiguration.requestCachePolicy = .reloadIgnoringCacheData urlSessionConfiguration.urlCache = nil