Llamabagel / transpo-android

Route 613 Android app (re-write)
MIT License
1 stars 2 forks source link

Add Use Cases for trips stuff #55

Closed dellisd closed 5 years ago

dellisd commented 5 years ago

This restructures the Trips feature to use the UseCase pattern for passing data between the repository and the viewmodel. On top of this, it also now uses Flow from Kotlin's coroutines library to allow the viewmodel to react to updates to the cached trip data in the repository.

This also updates the Kotlin Coroutines library to 1.3.0-M1.

Checklist

GustavoSanMartin commented 5 years ago

I know it's already large, but you should really add tests in this pr! Going forward, all our PRs should add tests.