sqldelight in Compose Desktop #4023
-
Hi I will try to use Sqldelight, following I have in my settings.gradle.kts plugins {
kotlin("multiplatform").version(extra["kotlin.version"] as String)
id("org.jetbrains.compose").version(extra["compose.version"] as String)
id("app.cash.sqldelight").version(extra["sqldelight_version"] as String)
} In my build.gradle.kts I have plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
kotlin("plugin.serialization") version "1.8.10"
id("app.cash.sqldelight")
}
// More
// SQLDelight
implementation("app.cash.sqldelight:sqlite-driver:$sqldelight_version")
implementation("app.cash.sqldelight:coroutines-extensions:$sqldelight_version")
//
sqldelight {
databases {
create("AppDatabase") {
packageName.set("database")
}
}
} But when I try to generate the classes : I don't know where is the problem. I have read other options and other types of problems and I have tried in others and I have not had a problem, only in this option. Any idea or suggestion to solve it? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
the |
Beta Was this translation helpful? Give feedback.
-
Oh thank you!! I make the commonMain dir because my project only has jvmMain, now it works :) |
Beta Was this translation helpful? Give feedback.
the
sqldelight
folder should be undercommonMain
, notsrc