/dagger-hilt-app

Plain app with dagger hilt dependency injection

Primary LanguageKotlinApache License 2.0Apache-2.0

dagger-hilt-app

Plain app with dagger hilt dependency injection

Dagger Hilt App

This is just plain app to show how to inject dependencies with the help of Dagger Hilt. Dagger Hilt makes it easy to inject dependencies and removes boiler plate code, makes the code organized and structured. It also makes it easy to inject viewmodels.

Italian Trulli

Tech stack:

  • Dagger Hilt
  • Object lifetime, singletons
  • Injecting same type objects with @Named
  • Injecting viewmodels
  • Using @Application to get application context