HyeonBae Ji
07/31/2025, 2:29 PMgildor
07/31/2025, 2:30 PMgildor
07/31/2025, 2:33 PMHyeonBae Ji
07/31/2025, 2:35 PMHyeonBae Ji
07/31/2025, 2:41 PMHyeonBae Ji
07/31/2025, 2:42 PMPablichjenkov
07/31/2025, 3:06 PMapi
or implementation
in your network module?
api will expose your transitive dependencies to your module consumers while implementation won'tPablichjenkov
07/31/2025, 3:07 PMHyeonBae Ji
07/31/2025, 3:10 PMHyeonBae Ji
07/31/2025, 3:11 PMHyeonBae Ji
07/31/2025, 3:14 PMwasyl
07/31/2025, 3:37 PMimpl
modules should be the module with DI (so app
). If that's the case, then it doesn't really matter whether you're using api or implementation+compileOnly, app will see the classes anyway. Imo api
dependencies should be used if the classes from that dependency are in public api and that's simplest way to go about that. A nice benefit is that if the dependencies of the impl module change, you only need to adjust that in one placePablichjenkov
07/31/2025, 4:45 PMHyeonBae Ji
07/31/2025, 4:53 PMtrevjones
07/31/2025, 5:09 PMgildor
08/04/2025, 3:01 AMgildor
08/04/2025, 3:13 AMgildor
08/04/2025, 3:14 AMThanks, now I see why people use Hilt ...hahaNot sure that I get it. And why? Hilt is convenient and easy to use, and it's officially promoted solution to inject Android components, but I doubt that many really understand how it works under the hood
trevjones
08/04/2025, 3:36 AM