The main reason is testing. If you want to test yo...
# android-architecture
f
The main reason is testing. If you want to test your
MainViewActVM
, with the second approach there is no way to mock your
AppRepository
, meanwhile with the first one, you can inject the
AppRepository
you want