hilt-di
CommunitySeamless Hilt DI setup for Android apps
AuthordimitriRemoiville
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Hilt DI wiring and usage across Android projects can become error-prone as complexity grows. This guide helps teams configure and maintain dependency injection so components can be constructed safely, tested effectively, and refactored with ease.
Core Features & Use Cases
- Define DI bindings with @Module, @Binds, and @Provides to map interfaces to implementations.
- Declare ViewModels with @HiltViewModel and retrieve them with hiltViewModel().
- Annotate Activities/Fragments with @AndroidEntryPoint to enable injection.
- Configure a Hilt-enabled Application with @HiltAndroidApp.
- Write Hilt-aware tests to validate bindings and scopes.
Quick Start
Add Hilt to your Android project by annotating your Application with @HiltAndroidApp, annotate Components with @AndroidEntryPoint, and inject dependencies via @Inject or constructor parameters in your ViewModels.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: hilt-di Download link: https://github.com/dimitriRemoiville/cc-mobile/archive/main.zip#hilt-di Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.