Created
September 14, 2024 03:41
-
-
Save fergdev/710f7ae73356298794663886e7086b93 to your computer and use it in GitHub Desktop.
Adding a mobileMain source set for KMP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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