We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Binds
@Provides
@Module
@MergeX
ContributesTo
@ContributesTo
@ContributesBinding
@InstallIn
@InstallBinding
@HiltAndroidApp
@AndroidEntryPoint
@HiltViewModel
by hiltViewModel()
@EntryPoint
The text was updated successfully, but these errors were encountered:
Block Impl from being injected if it used @ContributesBinding
Logic might look like something like this:
This might have a large amount of false positives but we'll see 🤷
Maybe this is better as SPI check?
Sorry, something went wrong.
flag incorrect usage of @BindsInstance
@BindsInstance
No branches or pull requests
Vanilla Dagger
@Binds
must be abstract@Provides
method should be static@Provides
or@Binds
methods make sure it's annotated with@Module
.@Binds
return type is super type of implAnvil
@MergeX
orContributesTo
annotations on Component and Subcomponents@ContributesTo
annotations on each Module@ContributesBinding
over@Binds
@ContributesBinding
has a super classHilt
@InstallIn
annotations on each Module@InstallBinding
over@Binds
(Add InstallBinding google/dagger#3516)@HiltAndroidApp
,@AndroidEntryPoint
,@HiltViewModel
)by hiltViewModel()
for getting viewModels from DI Graph@EntryPoint
can only be applied to interfaces@InstallIn
Inspiration / Resources
The text was updated successfully, but these errors were encountered: