finds.dev

mitchtabian/Dagger-Hilt-Playerground

A playground for learning dagger hilt on android

View on GitHubHomepage ↗

★ 276Kotlinupdated Jul 2022

// the take

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.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
276
Forks
90
Language
Kotlin
Last commit
27 Jul 2022

// nearby

If Dagger-Hilt-Playerground isn't quite it.

All repos →