-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift3.1 linux #37
Swift3.1 linux #37
Conversation
lightsprint09
commented
Apr 3, 2017
•
edited
Loading
edited
- Fixes Swift 3.1 warnings
- Upgrades Swift Lint to 0.17
- compiles now on linux. Tests need to be updated for linux - see Testing on Linux #38
Codecov Report
@@ Coverage Diff @@
## develop #37 +/- ##
===========================================
- Coverage 87.34% 83.83% -3.51%
===========================================
Files 37 20 -17
Lines 1027 297 -730
===========================================
- Hits 897 249 -648
+ Misses 130 48 -82
Continue to review full report at Codecov.
|
Source/DBNetworkStackError.swift
Outdated
@@ -89,7 +89,7 @@ extension DBNetworkStackError : CustomDebugStringConvertible { | |||
case .requestError(let error): | |||
return "Request error: \(error)" | |||
case .serverError(let response, let data): | |||
return "Server error: \(response), response: ".appendingContentsOf(data: data) | |||
return "Server error: \(String(describing: response)), response: ".appendingContentsOf(data: data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String describing returns optional type description like "optional("response text")"..
Source/URLSessionNetworkAccess.swift
Outdated
@@ -34,7 +34,7 @@ extension URLSession: URLSessionProtocol {} | |||
|
|||
extension URLSessionDataTask: NetworkTaskRepresenting { | |||
public var progress: Progress { | |||
let totalBytesExpected = response?.expectedContentLength ?? NSURLSessionTransferSizeUnknown | |||
let totalBytesExpected = response?.expectedContentLength ?? -1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use of NSURLSessionTransferSizeUnknown instead?