Is there a good tutorial/example-project out there...
# multiplatform
e
Is there a good tutorial/example-project out there describing how to setup SQLDelight in a multiplatform project (Android/iOS)?
a
probably best thing right now is the sample: https://github.com/square/sqldelight/tree/master/sample but theres no iOS. Once you have a similar setup to the sample you can add iOS on top same as other mpp projects: https://github.com/JetBrains/kotlin-mpp-example If someone is willing to contribute an iOS sample or write tutorials for the project I would be endlessly grateful, but hopefully its something i can get around to
👍 1
k
I’m revisiting sample project today if nothing gets in the way. You can see it in place in the droidcon app, but it’s a forked version due to gradle 4.7 vs 4.10 issues
a
forked of an alpha though right, not 1.0?
k
Yeah, that too
a
so i dont think its a good thing to recommend, theres a lot of API breaking changes (and bugs) from the RC's up to 1.0
k
It was updated, so it’s close-ish to 1.0, but I would only use it as a guide to config. Not as a base for an app
Fair enough
I’m waiting on answers to the 0.3/0.4 situation. It they’re updating for 1.3.20, I’ll probably not bother, but if that’s up in the air, maybe a 4.7 fork of sqldelight 1.0+
a
yea. I'm hoping 1.3.20 is also going to be 0.4, I know there are K/N breaking changes so I assumed they were doing both at the same time
k
Anyway, poking around sample. Biggest issue so far has been date adapter
Right. Have to redeploy everything
e
Thanks guys! I hadn't found the kotlin-mpp example so I'll look at that. So hopefully 1.3.20 resolves the Gradle/mpp incompatibility?
k
Yeah. Not sure it’ll help, but can’t hurt. Star this: https://youtrack.jetbrains.com/issue/KT-29045