This is what works for me:
* The buildscript dependency goes in the root
build.gradle.kts
* The plugins.id block goes into your shared library
build.gradle.kts
.
* In the
sqldelight { ... }
block, you could also try adding
sourceFolders = listOf("sqldelight")
(might be the default, but I've got it in my build)
* In your shared lib kotlin.sourceSets you need to add the various sqldelight deps. In
commonMain
add the
runtime
artifact, in
androidMain
add
android-driver
, and
iosMain
add
native-driver
.
c
Cicero
12/03/2020, 9:19 AM
😓 I’m not doing anything different than this. I recently upgraded to 1.5.0-SNAPSHOT.
I’m following this guy now, I haven’t done this step to of adding only the SQ file and co figuring dependencies, then build. I did it, it does not generate the correct files. I double checked my folder structure and tried a bunch of different paths to be sure. It doesn’t get created
Cicero
12/03/2020, 9:55 AM
This is a little bit frustrating. I removed the library for now and I’m going to create a new project from scratch and try to reproduce it