codelab-android-hilt icon indicating copy to clipboard operation
codelab-android-hilt copied to clipboard

Using Hilt in Libraries or SDK

Open ynagarjuna2012 opened this issue 4 years ago • 3 comments

Hello Fellow Devs,

I am curious to know if I can use Hilt in libraries / SDK without the need of client annotating application class with @HiltAndroidApp

Is this use-case intentionally kept out if so would like to know them. There is very little info on this front.

ynagarjuna2012 avatar Sep 16 '21 09:09 ynagarjuna2012

In fact, I implemented hilt in a library with aar extension and I have problems with the hiltandroidapp

jeckefe avatar Sep 23 '21 00:09 jeckefe

I've used it with client apps that provide @HiltAndroidApp, but is there something that breaks it when used as an aar library?

yschimke avatar Dec 14 '21 11:12 yschimke

Do we have any news regarding this use case?

felipezad avatar Jun 28 '22 15:06 felipezad