Rohit Verma
02/27/2026, 7:30 AMcommonMain and commonTest. But, for some reason I move those source-sets dependencies to this and it worked:
@OptIn(ExperimentalKotlinGradlePluginApi::class)
dependencies {
implementation(libs.compose.runtime)
implementation(libs.compose.foundation)
implementation(libs.compose.material3)
implementation(libs.compose.ui)
implementation(libs.compose.components.resources)
implementation(libs.compose.uiToolingPreview)
implementation(libs.androidx.lifecycle.viewmodelCompose)
implementation(libs.androidx.lifecycle.runtimeCompose)
testImplementation(libs.kotlin.test)
}
Now, I wonder what should I do for adding dependencies specific to target platforms, like for Android and iOS. Should I switch back to sourceSets block or there's some other way to do that? Please help me with this 🙂zsmb
02/27/2026, 9:18 AMcommonMain dependencies
https://kotlinlang.org/docs/multiplatform/multiplatform-dsl-reference.html#configure-dependencies-at-the-top-levelRohit Verma
02/27/2026, 2:44 PMsourceSets block now.