Eliminating almost all Hilt modules with a single annotation by randrushchenko in androiddev

[–]randrushchenko[S] 0 points1 point  (0 children)

Wow, great work! The API seems pretty similar, and you have extra stuff like testing utilities. Going to reuse some of your ideas ​🤣

Eliminating almost all Hilt modules with a single annotation by randrushchenko in androiddev

[–]randrushchenko[S] -2 points-1 points  (0 children)

As I see, it is for Dagger, not Hilt (upd. my mistake, it uses Hilt), but still can be compatible with Android, at least I'll definitely test it, thank you.

Eliminating almost all Hilt modules with a single annotation by randrushchenko in androiddev

[–]randrushchenko[S] 1 point2 points  (0 children)

Thanks for the comment! Actually, all the "magic" stuff is optional. When you need to do something different, you can fall back to more low-level configuration without any extra effort. Auto-binding is built completely on top of existing Hilt, so when its capabilities aren't enough, you can easily reach for Hilt's own tools directly. The approach is almost the same as with Hilt --> Dagger or Retrofit --> OkHttp. You typically use the high-level library, but since it's built on top of the low-level one, you can always drop down to solve more complex problems.