Hey, anyone tried having multiple feature modules ...
# multiplatform
r
Hey, anyone tried having multiple feature modules in their KMP project? can we share resources between modules? I would like to have the
strings
file just in the
core
module and the rest of the modules get access to it, but for some reason JP decided to make the variables
internal
sad panda
k
are you adding the library as an "implementation" or an "api" in gradle?
r
api, and I see the
Res
class, but if you look inside the resources generated class, you will see that all the members are
internal
k
Ah, yea I guess the generation handles that then. No I don't know how to share resources then, sorry
r
yeah, no worries, thanks for trying. idk if there is a purpose behind making them
internal
, if there is no reason I would say its better to make them public then it will work
m
You can instruct gradle plugin to generate
public
accessors using
publicResClass
i think, no?
r
oh wait, really?
where can I do that
m
yes it should be available under compose resources extension
r
didn't even think that this is considered 😄
worked like a charm, thanks man!
👌 1