Skip to content
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

Merged
merged 4 commits into from
Dec 20, 2024

Conversation

ih-codes
Copy link
Collaborator

@ih-codes ih-codes commented Dec 20, 2024

📜 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

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@ih-codes ih-codes requested review from OrlaM and nbhasin2 December 20, 2024 18:45
@ih-codes ih-codes requested a review from a team as a code owner December 20, 2024 18:45
@@ -49,42 +49,24 @@ final class FaviconFetcherTests: XCTestCase {
XCTFail("Should have succeeded with image")
}
}

func testTimeout_completesWithoutImageOrError() async {
Copy link
Collaborator Author

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
Copy link
Contributor

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)

Copy link
Collaborator Author

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.

@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented Dec 20, 2024

Messages
📖 Edited 6 files
📖 Created 0 files

Generated by 🚫 Danger Swift against 9b78579

@ih-codes ih-codes merged commit ca9c7ef into main Dec 20, 2024
13 checks passed
@ih-codes ih-codes deleted the ih/FXIOS-10149-update-kingfisher-v8-migration branch December 20, 2024 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants