iamthevoid
04/27/2021, 1:37 PMshared
module and feature-modules.
shared
• androidMain
• commonMain
• commonTest
• iosMain
feature1
• commonMain
• commonTest
feature2
• commonMain
• commonTest
i want to use code from shared-commonTest in featureN-commonTest. When i implement shared module in feature module i haven’t this possibility even if i implement shared
in featureN commonTest
targetiamthevoid
04/27/2021, 1:38 PMkotlin
block
kotlin {
android()
iOS()
sourceSets {
val commonMain by getting {
dependencies {
implementation(project(":lib:shared"))
...
}
}
val commonTest by getting {
dependencies {
implementation(project(":lib:shared"))
}
}
}
}
tapchicoma
04/27/2021, 2:27 PMcorneil
04/27/2021, 4:34 PMiamthevoid
04/28/2021, 6:05 AM