https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Anthony f

02/01/2021, 1:48 PM
Hi, I wonder if there is somewhere an example with a multi module kmm project. I tried to split my ":shared" module into 2 modules, and it failed then, when I added a third module in a bottom layer with common architecture stuff in commun module. Any idea or link to help me ?
• androidApp • shared • extra-shared • arch • iosApp in
extra-shared
module, I have :
Copy code
kotlin {
    sourceSets {
        val commonMain by getting {
            dependencies {
                implementation(project(":arch"))
            }
        }
}
I got this error : Could not resolve project :arch. Required by: project :extra-shared Possible solution: - Declare repository providing the artifact,
s

Samuel Bichsel

02/01/2021, 3:38 PM
@Anthony f We are doing that in our projects. The setup here might give you some inspiration: https://github.com/dreipol/multiplatform-redux-sample
2 Views