Open ahampe opened 5 years ago
Reopening since this doesn't seem to be done yet
Should I be following this pattern? https://medium.com/@marco_cattaneo/integrate-dagger-2-with-room-persistence-library-in-few-lines-abf48328eaeb
Here the repos are interfaces implemented by Datasources, which are injected with Daos. E.g. ShowDatasource implements ShowRepository and is injected with ShowDao + BroadcastDatasource. BroadcastDatasource implements BroadcastRepository and is injected with BroadcastDao, etc.
This one is relatively low-hanging fruit because it's already in its own package under
global
. We should move the Room dependency to this new module and ideally only exposeRepository
classes publicly. I think we directly callDao
s quite a bit, so there may be some additional work adding the repository abstraction layer.