Attached is my attempt to create a multiplatform m...
# multiplatform
k
Attached is my attempt to create a multiplatform module which can be imported in
commonMain
However, it seems like am missing something. I can see following error:
Failed to resolve: project :myModuleName
Any ideas, how to approach it? The dependencies are only compose based since it is a ui only module.
k
Did you
include
your module in the
settings.gradle.kts
file? Sounds like it can't find your module
k
Yes i did,
k
Q1: does the
myModuleName
module need to have a commonmain right and those classes will only be visible in the module ? Q2: I don't need android library plugin right ?
k
Q1. classes that are not marked as private or internal will be visible to the module that is implementing it. Q2. I believe you only need the android library plugin if you have code in an
androidMain
directory, though I'm not entirely sure about that
If it helps you can try looking at the droidcon repo, it has two shared modules, one with compose code, and one module is implemented in another one
🙏 1
k
thank you very much, will have a look at the repo.