Fabian Shallari

Senior Android Engineer @ Babbel

Talk Title

The Lazy (Meta)programmer’s Guide to Hilt Extensions

Room

Glass

Date

04.07.2024

Time

10:15 > 40 min

Share

on Twitter

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.

Speaker Bio

Android engineer working at Babbel (starting June 1st, 2024). I’ve been tinkering with Android since the Kitkat days. Throughout my career, I’ve played dual roles: leading significant redesigns of core app features and contributing to platform teams to ensure architectural coherence and collaboration across diverse feature teams. I am most passionate about enhancing Developer Experience (DX), striving to streamline processes and empower fellow developers to create better apps seamlessly.

Menu