Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 899 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 899 Bytes

Dagger-Hilt 🗡️

API

Application designed and based on the tutorial from Philipp Lackner: https://www.youtube.com/@PhilippLackner/playlists.

Features ✨

  • Dagger-Hilt

Basic use of the dagger-hilt library in simple examples.

Project Milestones

Annotations

  • @HiltAndroidApp
  • @HiltViewModel
  • @AndroidEntryPoint
  • @Module
  • @InstallIn(SingletonComponent::class)
  • @Binds
  • @Provides
  • @Singleton
  • @Named("someUniqueName")

You can also use:

  • @InstallIn(ActivityComponent::class)
  • @InstallIn(ViewModelComponent::class)
  • @InstallIn(ActivityRetainedComponent::class)
  • @InstallIn(ServiceComponent::class)

Injecting into constructor

  • @Inject constructor

Overview

The application is just a basic example for practicing the most used dagger-hilt annotations.