协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
android-di【开发与工程】Configure Hilt dependency injection with proper scoping, modules, and constructor injection in Android. Use when changing the production Hilt graph; defer test overrides, Room wiring, navigation-specific scopes, and generic DI explanations to their specific skills.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Application class with @HiltAndroidApp.@AndroidEntryPoint.See module templates for bootstrap and module examples.
@Binds (abstract class) over @Provides when possible — generates smaller code.@InstallIn (SingletonComponent, ViewModelComponent).See module templates for @Binds examples.
@Inject constructor(...) over field injection.@AssistedInject for runtime parameters.