Merge pull request #245 from TouchInstinct/fix/SessionManager

Fix mappingQueue in SessionManager
This commit is contained in:
Loupehope 2020-09-04 19:26:18 +03:00 committed by GitHub
commit 5be71ec033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,8 @@
# Changelog
### 0.10.3
- **Fix**: `mappingQueue` of `SessionManager`.
### 0.10.2
- **Add**: `RefreshControl` - a basic UIRefreshControl with fixed refresh action.

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKit"
s.version = "0.10.2"
s.version = "0.10.3"
s.summary = "iOS framework with a bunch of tools for rapid development"
s.homepage = "https://github.com/TouchInstinct/LeadKit"
s.license = "Apache License, Version 2.0"

View File

@ -72,7 +72,7 @@ public extension NetworkServiceConfiguration {
serverTrustManager: ServerTrustManager(allHostsMustBeEvaluated: !serverTrustPolicies.isEmpty,
evaluators: serverTrustPolicies),
acceptableStatusCodes: acceptableStatusCodes,
mappingQueue: .global())
mappingQueue: DispatchQueue(label: .mappingQueueLabel, qos: .default))
}
/// Convenient method to create ApiRequestParameters.
@ -123,3 +123,7 @@ public extension NetworkServiceConfiguration {
headers: requestHeaders)
}
}
private extension String {
static let mappingQueueLabel = "leadkit.session.rootQueue"
}