A project demonstrating the basics of Dagger2
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
app
gradle/wrapper
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

DaggerExample

This project demonstrates the basics of Dagger2 in Kotlin, covering the following topics: components, modules, scopes, @Inject annotation, subcomponents and dependency layering. There are also two flavors of the app, one which takes advantage of Dagger and one that does not. This is evident through the flavor specific classes, notably the Injector (Kotlin) file.

The project itself is a simple app which fetches and parses JSON data containing South Park episodes. The user can save/delete episodes to a favourites list, as well as view specific episode details.

Check out the full article here: https://moducode.com/blog/android-tutorial-dagger-kotlin/