You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
When using the @HiltViewModel annotation to help with dependency injection it isn't possible to use the @Inject annotations from this library.
Perhaps the Dagger hilt annotation processor doesn't work with typealiases and explicitly expects javax.inject.Inject annotations?
Basically, this project just creates expected @Inject annotations in the common source, and the JVM and Android implementations just use a typealias to the javax.inject.Inject annotations. Something like this:
actual typealias Inject = javax.inject.Inject
There's no special functionality provided. My thoughts are the Hilt annotation processor might not work with typealiases. I'm not sure since I don't use Hilt. But it seems like an issue with their library.
Describe the bug
A clear and concise description of what the bug is.
When using the
@HiltViewModel
annotation to help with dependency injection it isn't possible to use the@Inject
annotations from this library.To Reproduce
Expected behavior
No compilation errors such as
The text was updated successfully, but these errors were encountered: