-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Adding download on RequestExecutor #133
Conversation
AppStoreConnect-Swift-SDKTests.xctest: Coverage: 99.56
AppStoreConnect_Swift_SDK.framework: Coverage: 80.79
Generated by 🚫 Danger Swift against 0fba0da |
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.
Thanks, this looks great! I see there are a few new methods regarding downloading. Could you write tests for these?
Sources/APIProvider.swift
Outdated
|
||
|
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.
Sources/DefaultRequestExecutor.swift
Outdated
|
||
|
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.
@AvdLee I remove the extras lines add some tests and put a time zone on the testDateDecoding because it was failing on my computer has I am on an other time zone. |
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.
Looks all good, thanks a lot!
func testDateDecoding() throws { | ||
let decoder = APIProvider.jsonDecoder | ||
let outputFormatter = DateFormatter() | ||
outputFormatter.dateFormat = "E, d MMM yyyy HH:mm:ss Z" | ||
outputFormatter.locale = Locale(identifier: "en_US_POSIX") | ||
|
||
outputFormatter.timeZone = TimeZone(identifier: "GMT") |
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.
Perfect!
Congratulations! 🎉 This was released as part of Release 1.4.0 🚀 Generated by GitBuddy |
Hello I think the download of the reports should be through downloadTask instead of a dataTask so I recreate a new method to user downloadTask instead of dataTask. I was not able to run the tests. Can you helped me run it?