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

Migrate to Coil 3 #11723

Merged
merged 6 commits into from
Nov 21, 2024
Merged

Migrate to Coil 3 #11723

merged 6 commits into from
Nov 21, 2024

Conversation

Isira-Seneviratne
Copy link
Member

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • Update Coil from 2.7.0 to 3.0.3 (changelog).
  • Convert the application class to Kotlin due to some methods in ImageLoader.Builder being converted to extension functions.
  • Update the codebase to account for the changes introduced in Coil 3.

Fixes the following issue(s)

  • Fixes #

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

Due diligence

@github-actions github-actions bot added the size/giant PRs with more than 750 changed lines label Nov 20, 2024
@ShareASmile ShareASmile added dependency Issues and PRs related to dependencies rewrite Issues and PRs related to rewrite labels Nov 20, 2024
Copy link
Contributor

@Profpatsch Profpatsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried it out, app still works the same for thumbnails, code looks 🆗

@Profpatsch
Copy link
Contributor

I think you have to run the auto-formatter on the .kt file, otherwise the linter fails

@TobiGr TobiGr removed their assignment Nov 20, 2024
Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the following things and everything worked well:

  • clearing cache actually removes the files on disk
  • the player thumbnail loads normally (also in SoundCloud songs)
  • the notification thumbnail also loads fine
  • changing image quality works
  • sharing a video also shows its image in the share sheet, so the image is correctly obtained from cache

Thank you!

@Stypox Stypox merged commit 295f719 into TeamNewPipe:refactor Nov 21, 2024
5 checks passed
Copy link

sonarcloud bot commented Nov 21, 2024

@Stypox Stypox mentioned this pull request Nov 26, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency Issues and PRs related to dependencies rewrite Issues and PRs related to rewrite size/giant PRs with more than 750 changed lines
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants