Using Hilt in a multi module project - Fabio Collini -

Опубликовано: 18 Июнь 2026
на канале: GDG Italia
2,410
14

Modularizing a project is never easy, a lot of files to move and the dependencies between them is not always what we expect. Then the Dagger configuration used in a single module project often doesn't scale well to a multi module project. Hilt is opinionated about the configuration to use (we don't need to argue anymore about using component dependencies or subcomponents!) and this configuration works perfectly even in a multi module project.

In this talk we'll see first an introduction to Hilt and a comparison with Dagger to understand why it's easier to configure. Then we'll see how to leverage it in a multi module project (both in a standard layered architecture and in a Clean Architecture that uses the Dependency Inversion) to improve build speed and code testability. Spoiler alert: using sample apps that include a single feature in the app helps a lot!

Speaker: Fabio Collini (GDE Android e Kotlin - Android Engineer at The New York Times)


Altri talk ➡    • DevFest Italia 2020  

Sito DevFest Italia ➡ https://www.devfest.it/

#mobile#DevFestItalia #DevFest #gdgfun #GDG