mars885/hilt-binder

InstallIn custom component

jakoss opened this issue ยท 3 comments

For now, installIn requires usage of Component enum. I have to install my class in custom component. Can i do that right now? If not - i think it's crucial to have this. In my case - i'm trying to get rid of boilerplate when using Maverics with Hilt. I have such component:

@MavericksViewModelScoped
@DefineComponent(parent = SingletonComponent::class)
interface MavericksViewModelComponent

First of all, thanks for the feedback.

You are right in that custom components are not supported by the library at this moment. However, I'm definitely planning to add support for them in the upcoming release.

Custom components are now supported in the 1.0.0-alpha02 version. See changelog for more info.

Works perfectly, thank you!