-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Bugfix FXIOS-10149, FXIOS-10940 Migrate to Kingfisher 8 and fix iOS 18 crash on launch (continuations again?) #23920
Conversation
…unnecessary timeout code. Remove continuation.
@@ -49,42 +49,24 @@ final class FaviconFetcherTests: XCTestCase { | |||
XCTFail("Should have succeeded with image") | |||
} | |||
} | |||
|
|||
func testTimeout_completesWithoutImageOrError() async { |
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.
This test didn't make sense anymore because we're using Kingfisher's timeout functionality.
return result | ||
// Override Kingfisher's default timeout (which is 15s) | ||
let modifier = AnyModifier { request in | ||
var r = request |
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.
nit: could we make these more verbose please (instead of one letter)
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.
Oops yep, I'll push that up, that was a copy & paste from the Kingfisher docs.
Generated by 🚫 Danger Swift against 9b78579 |
📜 Tickets
Jira Kingfisher Upgrade
Github Kingfisher Upgrade
FXIOS-10940 Crash
Github Crash
💡 Description
This PR upgrades Kingfisher to version 8 and removes continuations related to downloadImage for favicons in favor of leveraging the async/await versions.
Kingfisher has a built in timeout so I deleted timeout-related code and ensured we were setting the timeout modifier on our kingfisher downloadImage request.
📝 Checklist
You have to check all boxes before merging
@Mergifyio backport release/v120
)