Maksym M.
10/21/2025, 12:53 PMprivate val providers: Map<Class<out Fragment>, @JvmSuppressWildcards Provider<Fragment>>
I generate Hilt modules with ksp and these look like this
@Module
@InstallIn(SingletonComponent::class)
public object HiltNavigationAlertDialogModule {
@Provides
@IntoMap
@NavigationEntryMap
@LazyClassKey(AlertDialog::class)
public fun bindAlertDialog(): Fragment = AlertDialog()
}
I see that hilt aggregares the dependency but fails to inject it at the injection site I posted above
Is there some tampering with types I need to do? The errors are of no use and I am out of ideasMaksym M.
10/21/2025, 12:57 PMprivate val providers: Map<Class<*>, @JvmSuppressWildcards Provider<Fragment>>
And it works, now the question is: can I get some type safety back or should I just rely on correct application of qualifiers for my multibindings?