StephGit / EazyTime

Android app for time tracking
MIT License
2 stars 2 forks source link

Architektur ViewModel vs. Entity #4

Closed StephGit closed 5 years ago

StephGit commented 5 years ago

Engineering!

StephGit commented 5 years ago

Use ViewModel instead of entities

Pro:

https://developer.android.com/jetpack/docs/guide#separation-of-concerns

Checklist

Cons:

ChristianMuellerBE commented 5 years ago

https://www.youtube.com/watch?v=T-nQP9fidKU

Hier noch ein Tutorial für Data Binding with LiveData (Two-way & One-way):

StephGit commented 5 years ago

https://www.techyourchance.com/dependency-injection-viewmodel-with-dagger-2/

StephGit commented 5 years ago

https://medium.com/@fabioCollini/android-testing-using-dagger-2-mockito-and-a-custom-junit-rule-c8487ed01b56

StephGit commented 5 years ago

https://github.com/googlesamples/android-architecture-components/blob/74b2afe88fd79c37361120e3cb454561687a853d/GithubBrowserSample/app/src/main/java/com/android/example/github/repository/NetworkBoundResource.java