// the find
mitchtabian/Dagger-Hilt-Playerground
A playground for learning dagger hilt on android
A learning playground for Dagger Hilt on Android, organized as a series of branches covering progressively more complex DI scenarios: basic injection, scopes, modules, MVI architecture, and instrumented testing. It's a companion to CodingWithMitch video tutorials, not a standalone reference.
The branch-per-topic structure is genuinely useful — you can check out exactly the concept you're struggling with without wading through unrelated code. The instrumented testing section is more thorough than most Hilt tutorials, covering custom test runners, module replacement with @UninstallModules, and the launchFragmentInHiltContainer workaround. The README is honest about its own limitations ('This is not how I would build out the architecture normally'). The jsr305 version conflict and its fix are documented inline, which saves real time.
Last touched in July 2022, so it's pinned to a Hilt version from the alpha/early-stable era — several APIs have changed since, and the build will almost certainly fail on a current AGP without dependency updates. The @BindValue issue in the testing section is left unresolved with 'I can't get this to work', which is a bad place to leave a learner. There are no unit tests at all — the test coverage is instrumented-only, which means you can't learn the faster feedback loop. Without the video series it was built for, some branches are context-free.