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

[FileDownloader] Remove SDWebImage download files when migrating #349

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

nzagorchev
Copy link
Contributor

Overview

Remove the files downloaded by SDWebImage and clear the previous preferences when migrating to the new File Downloader.
SDWebImage does not provide direct API to move the files to a different location, hence it is safer to remove them and the File Downloader will download the actively used files.

Implementation

Use SDWebImage to remove the files from the previous storage.
Add unit test which downloads files mimicking the legacy logic and then asserts the files are deleted after migration.

Copy link
Contributor

@nishant-clevertap nishant-clevertap left a comment

Choose a reason for hiding this comment

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

LGTM

@nzagorchev nzagorchev merged commit 8ea63a9 into develop Jul 12, 2024
1 of 2 checks passed
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.

2 participants