Hey everyone, I recently created a fresh KMP proje...
# multiplatform
r
Hey everyone, I recently created a fresh KMP project and then migrated to AGP 9. However, before migration I had dependencies defined in their specific source-sets for
commonMain
and
commonTest
. But, for some reason I move those source-sets dependencies to this and it worked:
Copy code
@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 🙂
z
r
Thanks for the reply @zsmb Looks like I have to switch to
sourceSets
block now.