Skip to content

Instantly share code, notes, and snippets.

@fergdev
Created September 14, 2024 03:41
Show Gist options
  • Save fergdev/710f7ae73356298794663886e7086b93 to your computer and use it in GitHub Desktop.
Save fergdev/710f7ae73356298794663886e7086b93 to your computer and use it in GitHub Desktop.
Adding a mobileMain source set for KMP
val mobileMain = create("mobileMain") {
kotlin.srcDir("src/mobileMain/kotlin")
dependsOn(commonMain)
dependencies {
implementation(libs.androidx.data.store.core)
implementation(libs.androidx.room.runtime)
implementation(libs.sqlite.bundled)
}
}
val androidMain by getting {
dependsOn(mobileMain)
}
val iosMain by getting {
dependsOn(mobileMain)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment