I have an enum class with @StringRes property, which I want to use in a few feature modules.
I don’t want to put it directly in domain module, since it has android references, so I need to map into it.
Where do I put this enum so all feature modules can access it, and to still have a way to map into it from domain module?
j
Javier
04/22/2021, 4:51 PM
shared UI layer
s
solidogen
04/22/2021, 4:54 PM
yeah, I wanted to avoid this, but I’m not sure what else can I do
j
Javier
04/22/2021, 5:13 PM
it is a UI model that is shared to all features, so I don't see the problem
s
solidogen
04/22/2021, 5:16 PM
yes, this is indeed an answer to my problem, I just feel I will overengineer this
v
Vyshas
05/18/2021, 6:05 AM
Access the string resources using android references from data layer and pass just the strings to domain layer and above layer if you don't want shared UI shared layer...