JoaquimLey / transport-eta

Twitch streamed 🎥playground repo, README speaks to you.
https://medium.com/@JoaquimLey/android-architecture-components-now-with-100-more-mvvm-11629a630125
Apache License 2.0
224 stars 45 forks source link

Feature: Domain Layer #60

Closed JoaquimLey closed 5 years ago

JoaquimLey commented 5 years ago

This pull-request adds the boilerplate for the domain layer with the Favorites feature

This includes some changes to the model representation, although doesn't really make sense, this PR will introduce compile issues since the presentation layer is still not adhering to the Domain specs.

With this change, we'll be able to remove the :sms dependency from the presentation layer since we'll have the data layer handling all the data related stuff (wow such smart, very obvious 🐶)

From

UI -> Presentation -> SMS

To

UI -> Presentation -> Domain -> Data -> SMS

With the new layers testing we'll be easier since we won't need to mock any specific classes (just UseCaseInterface(s)) 🎉

Fix #59

Relyed on buffer-boilerplate as an example.