Android Kotlin: Forecast App 05 – Repository & Kodein Dependency Injection – MVVM Tutorial Course

Repository is a class which puts the network and local data operations into a centralized place. Repository is also a place for orchestrating the data caching. We don’t need to fetch data from the network every time the user launches our app. If the local data is relatively up-to-date, we can use it instead.

In this part the series you are going to learn how to create such a repository. You’re also going to learn how to finally set up the dependency injection so that we are prepared for the next part.

?Get the code from this tutorial?


Matej Rešetár

Matej is an app developer with a knack for teaching others. If he's not programming, making tutorials or doing other business, he's mostly working out, listening to audiobooks and taking cold showers.