Hello,
Is it possible to integrate a kotlin native project (otherKnLib) as project dependencies (source folder) in another kotlin native project (common) ?
- rootProject
- app
- iOS
- common
- src
- androidMain
- commonMain
- ...
- build.gradle
- otherKnLib
- src
- androidMain
- commonMain
- ...
- build.gradle
settings.gradle
build.gradle
I tried to import my lib in the differents sourceSets dependencies in the common module, but I suppose I also have to specify the "target" (common, android, ios) for each sourceSet
sourceSets {
val commonMain by getting {
implementation(project(":otherKnLib")
}
val androidMain by getting {
implementation(project(":otherKnLib")
}
val iosMain by getting {
implementation(project(":otherKnLib")
}
}
In this case, when i try to build, i got an
Unresolved reference
Any idea ? Thanks in advance :)