Newbie question... I have an existing Android only project and it has an
app
module, and then a
my_composables
module.
I converted the project to support kmm in order to get compose for desktop working. Now
my_composables
is a kmm module with
Copy code
androidMain
commonMain
desktopMain
main
I put a brand new
HelloWorld
composable in common, and can now use that common composable in my
app
module and
desktopApp
module. All is good with the world AND I can slowly migrate my android only composables from
main
into
commonMain
.
That's my current strategy. Slowly migrate from
main
into
commonMain
. Is that "bad" or wrong? Should I just shove everything into
androidMain
? Basically asking "is
main
in a kmm module a bad pattern?"
🆗 3
c
CLOVIS
07/03/2021, 10:40 PM
I don't think it matters much. If I were you I would move everything to androidMain and then try to generify it into commonMain, but I don't think it's wrong to keep a bonus module