Merge pull request #245 from TouchInstinct/fix/SessionManager
Fix mappingQueue in SessionManager
This commit is contained in:
commit
5be71ec033
|
|
@ -1,5 +1,8 @@
|
|||
# Changelog
|
||||
|
||||
### 0.10.3
|
||||
- **Fix**: `mappingQueue` of `SessionManager`.
|
||||
|
||||
### 0.10.2
|
||||
- **Add**: `RefreshControl` - a basic UIRefreshControl with fixed refresh action.
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue