android-hilt
CommunitySet up Hilt DI faster in Android
Software Engineering#dependency injection#android#hilt#ksp#viewmodel injection#module bindings#hilt testing
Authorsoygabimoreno
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Hilt dependency injection reduces boilerplate and wiring errors by making your Android component graph explicit and validated at compile time.
Core Features & Use Cases
- Project setup and Gradle configuration: Add Hilt with KSP or kapt, and wire the required plugins and dependencies for Android.
- Module definitions and bindings: Use @Module with @InstallIn plus @Binds for interface-to-implementation wiring and @Provides for factory methods.
- Correct scoping and component hierarchy: Apply @Singleton, @ActivityRetainedScoped, @ViewModelScoped, and @ActivityScoped so dependencies live as long as they should.
- ViewModel injection and entry points: Inject dependencies into @HiltViewModel and connect Activities/Fragments via @AndroidEntryPoint; support Compose via hiltViewModel().
- Testing support: Use @HiltAndroidTest, HiltAndroidRule, and test-time module replacement to validate behavior with fakes.
Quick Start
Use the android-hilt skill to help you add Hilt to your Android project and correctly inject a ViewModel into a Compose screen.
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: android-hilt Download link: https://github.com/soygabimoreno/Los-ANDROIDES/archive/main.zip#android-hilt 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.