https://kotlinlang.org logo
#android-architecture
Title
# android-architecture
u

ursus

11/07/2021, 12:36 PM
people who use anvil or hilt for di how do you deal with object composition? how to "uninclude" the default implementation from base type binding, but then have it available as parameter for the extended type?
m

marlonlom

11/07/2021, 6:08 PM
Mmm, that's a implementation of the factory design pattern, so you could check that for reducing some hierarchy issues in your design model
m

mattinger

11/10/2021, 9:42 PM
I had hoped to be honest that @BindValue could replace (or add) a value in the graph, but that’s not the case. You have to combine it with UninstallModule, which is a bit wacky.
6 Views