Use dependency injection instead of re-creating the api objects everywhere
Using dagger: https://dagger.dev/ to accomplish this is probably the way to go
Injecting:
-
Database -
API -
SharedSettings (?)
Edited by Matthieu
Using dagger: https://dagger.dev/ to accomplish this is probably the way to go
Injecting: