helloo. i am trying to share string resources betw...
# moko
j
helloo. i am trying to share string resources between our android app and js website. things we’re generally working fine until I tried to isolate the strings to their own module. originally i had
module-a
with
plugins { id("dev.icerock.mobile.multiplatform-resources") }
and I defined the
multiplatformResourcesPackage
. I have a
main.kt
which used
MR.strings.foo
. running
./gradlew :module-a:jsBrowserRun
ran fine and displayed the string. cool. but now I have
module-a
depends on
module-b
where
module-b
has the moko plugin and string resources and
module-a
has the
main.kt
file. this, unfortunately, fails
it seems like it has something to do with the
moko-resources-generated.js
file that is generated and located in
webpack.config.d
. in fact, if i keep the old
moko-resources-generated.js
file from when i originally had the strings in module-a, it works fine. this leads me to think that that generated file is important for whatever top level module ends up using the strings, but I feel like that top level module shouldnt really need to know anything about the moko resource generation happening in lower modules.
would be awesome if someone could let me know if there’s something I might be doing wrong otherwise i’d be happy to file this as a bug on github issues