Thread
#multiplatform
    Colton Idle

    Colton Idle

    1 year ago
    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
    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?"
    c

    CLOVIS

    1 year ago
    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