Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove generic DataState and replace with BreedListState for better generic handling in Swift - Better separation between Repository and ViewModel. The repository exposes raw data, and the viewmodel packages it into success/loading/error/empty states - Tests can use jvm sqlite driver instead of robolectric (this avoids deadlocks that were happening with runBlocking and viewModelScope on robolectric) - Database exposes favorite as a Boolean instead of an Int - Rewritten tests for both Repository and ViewModel
- Loading branch information
Showing
13 changed files
with
492 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.