Hi, I would like to use sqldelight db in my KMM project, but I am struggling with integration. I have defined sq file and when I run build it will generate the sources in 2 packages. One is commonMain and second is commonCommonMain. Because the generated classes are twice I get lots of errors about redeclaration. What can I change to have only one package?
d
Derek Ellis
03/16/2023, 2:29 PM
What version of SQLDelight are you using? There are some incompatibilities with older versions of SQLDelight and Kotlin 1.8
m
Martin Kolesar
03/16/2023, 2:30 PM
1.5.5
d
Derek Ellis
03/16/2023, 2:31 PM
Hmm that shouldn't be a problem then 🤔
r
Roland
03/16/2023, 3:16 PM
Using sqldelight 2 solved the problem for me
h
hfhbd
03/16/2023, 3:47 PM
Sure to make sure, you are using version 1.5.5 of the sqldelight Gradle plugin?