-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Conversation
@@ -432,4 +413,105 @@ class AssetService { | |||
Future<List<Asset>> getStackAssets(String stackId) { | |||
return _assetRepository.getStackAssets(stackId); | |||
} | |||
|
|||
Future<void> clearTable() { | |||
return _assetRepository.clearTable(); |
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 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
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.
I created an exif service/repo to have its own clearTable
method
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