From 8ce0c5dcb7f11df743eba06b36a18d0979042021 Mon Sep 17 00:00:00 2001 From: Anthony Guiguen Date: Wed, 5 Aug 2020 09:35:07 +0200 Subject: [PATCH 1/2] [F] ServerRemoteDataSource - waitsForConnectivity --- .../Client/Server/ServerRemoteDataSource.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/ZetaPushNetwork/Client/Server/ServerRemoteDataSource.swift b/Sources/ZetaPushNetwork/Client/Server/ServerRemoteDataSource.swift index 6d14182..a41570a 100644 --- a/Sources/ZetaPushNetwork/Client/Server/ServerRemoteDataSource.swift +++ b/Sources/ZetaPushNetwork/Client/Server/ServerRemoteDataSource.swift @@ -31,6 +31,10 @@ class ServerRemoteDataSource { let configuration = URLSessionConfiguration.default configuration.timeoutIntervalForRequest = timeout configuration.timeoutIntervalForResource = timeout * 3 + configuration.requestCachePolicy = .reloadIgnoringLocalAndRemoteCacheData + if #available(iOS 11.0, *) { + configuration.waitsForConnectivity = true + } self.session = URLSession(configuration: configuration) } From 5898be114f6ba241755462d50def88fb26aac256 Mon Sep 17 00:00:00 2001 From: Anthony Guiguen Date: Mon, 7 Sep 2020 11:55:52 +0200 Subject: [PATCH 2/2] [I] Update version 3.1.1 and changelog --- CHANGELOG.md | 5 +++++ Package.resolved | 4 ++-- Package.swift | 2 +- README.MD | 2 +- ZetaPushNetwork.podspec | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd54310..650378f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # CHANGELOG All notable changes to this project will be documented in this file. +## 3.1.1 +* Fix - Set waitsForConnectivity in URLSessionConfiguration +[Anthony GUIGUEN](https://https://github.com/anthonyGuiguen) +[#36](https://github.com/Insurlytech/zetapush-swift/pull/34) + ## 3.1.0 * Errors - Create recorder for sharing important errors * Errors - Refact error to be more precise on the failure diff --git a/Package.resolved b/Package.resolved index ec56e44..9a8957a 100644 --- a/Package.resolved +++ b/Package.resolved @@ -6,8 +6,8 @@ "repositoryURL": "https://github.com/Insurlytech/CometDClient-iOS.git", "state": { "branch": null, - "revision": "44ce6ecd3594a670ea59d375ff69af4c090d0edb", - "version": "1.1.0" + "revision": "335f7034817cd4610bda0c79dbd8fc05336aa7b6", + "version": "1.1.1" } }, { diff --git a/Package.swift b/Package.swift index 6cd2d19..fce9c47 100644 --- a/Package.swift +++ b/Package.swift @@ -13,7 +13,7 @@ let package = Package( ], dependencies: [ // Dependencies declare other packages that this package depends on. - .package(name: "CometDClient", url: "https://github.com/Insurlytech/CometDClient-iOS.git", .upToNextMajor(from: "1.1.0")), + .package(name: "CometDClient", url: "https://github.com/Insurlytech/CometDClient-iOS.git", .upToNextMajor(from: "1.1.1")), // .package(name: "CometDClient", path: "../CometDClient-iOS"), //AGU .package(url: "https://github.com/hkellaway/Gloss.git", .upToNextMajor(from: "3.1.0")), .package(url: "https://github.com/mxcl/PromiseKit", .upToNextMajor(from: "6.13.1")), diff --git a/README.MD b/README.MD index a29f1b5..11f733f 100644 --- a/README.MD +++ b/README.MD @@ -18,7 +18,7 @@ Check out [Get Started](http://cocoapods.org/) tab on [cocoapods.org](http://coc To use ZetaPushNetwork in your 'Podfile': - pod 'ZetaPushNetwork', '~> 3.0.0' + pod 'ZetaPushNetwork', '~> 3.1.1' Then run: diff --git a/ZetaPushNetwork.podspec b/ZetaPushNetwork.podspec index fe4dd50..efb60bd 100644 --- a/ZetaPushNetwork.podspec +++ b/ZetaPushNetwork.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |spec| spec.name = "ZetaPushNetwork" - spec.version = "3.1.0" + spec.version = "3.1.1" spec.summary = "Swift client for ZetaPush" spec.description = <<-DESC Swift client for ZetaPush