top of page
The Lazy (Meta)programmer's Guide to Hilt Extensions
Starts:
4. Juli 2024 um 10:15:00
Ends:
4. Juli 2024 um 10:55:00
Status:
Accepted
This session is dedicated to exploring a lesser-known aspect of Hilt: Extensions (https://dagger.dev/hilt/creating-extensions.html)
Extensions offer a mechanism for generating dagger modules using custom annotation processors, allowing us to automate repetitive patterns in Hilt-based projects and make dependency injection even easier.
This talk will be exploring 2 such annotations: @AutoBind and @AutoMultiBind, processed with KSP, which can be used to bind implementation classes to interfaces automatically. These annotations can be used to eliminate the boilerplate of writing Dagger modules by hand for every module in a multi-modular codebase, and as a helpful side-effect, help replace mocks with fakes in integration tests.
Speakers
bottom of page