Hilt and Koin

Dependency Injection with Hilt and Koin

BookNest's catalog factory still builds its own BookRepository. That stops working when Room 234 , DataStore 234 and Retrofit 43,944 (Local Storage with Room-Retrofit and Ktor) arrive, each with its own setup and lifetime. This section hands construction to a dependency injection framework, Hilt, compares it with Koin, and tests a ViewModel without a device.

Subsections