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

refactor(mobile): asset provider #16159

Merged
merged 8 commits into from
Feb 18, 2025
Merged

refactor(mobile): asset provider #16159

merged 8 commits into from
Feb 18, 2025

Conversation

alextran1502
Copy link
Contributor

@alextran1502 alextran1502 commented Feb 17, 2025

Refactor AssetProvider to use the repository pattern.

The RenderList refactoring will come in a later PR since we will need to migrate other part first

@@ -432,4 +413,105 @@ class AssetService {
Future<List<Asset>> getStackAssets(String stackId) {
return _assetRepository.getStackAssets(stackId);
}

Future<void> clearTable() {
return _assetRepository.clearTable();
Copy link
Member

Choose a reason for hiding this comment

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

This used to clear both asset and exif tables before, but since we've moved them both to their individual repos, we need to call exifRepo.clearTable() here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created an exif service/repo to have its own clearTable method

@alextran1502 alextran1502 merged commit 9d4aee3 into main Feb 18, 2025
38 checks passed
@alextran1502 alextran1502 deleted the refactor-asset-provider branch February 18, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants