Does Dagger support multibinding with KClass<*> type?
I have a KeyMap like this:
@Target(AnnotationTarget.FUNCTION)
@MapKey
annotation class JsonSerializerKey(val value: KClass)
and want to provide them as:
// #1 doesn't work
Map
// #2 works
Map
Dagger can't find and collect provided items when requesting KClass (with below error) but it works with Class.
error: [Dagger/MissingBinding] java.util.Map> cannot be provided without an @Provides-annotated method.
How can I achieve map of KClass in dagger multibinding?
P.S: All provided...