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?
04/22/2021, 4:51 PM
shared UI layer
04/22/2021, 4:54 PM
yeah, I wanted to avoid this, but I’m not sure what else can I do
04/22/2021, 5:13 PM
it is a UI model that is shared to all features, so I don't see the problem
04/22/2021, 5:16 PM
yes, this is indeed an answer to my problem, I just feel I will overengineer this
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...