https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
e

einar

01/17/2019, 10:19 AM
Is there a good tutorial/example-project out there describing how to setup SQLDelight in a multiplatform project (Android/iOS)?
a

alec

01/17/2019, 2:23 PM
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

kpgalligan

01/17/2019, 2:44 PM
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

alec

01/17/2019, 3:19 PM
forked of an alpha though right, not 1.0?
k

kpgalligan

01/17/2019, 3:20 PM
Yeah, that too
a

alec

01/17/2019, 3:20 PM
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

kpgalligan

01/17/2019, 3:21 PM
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

alec

01/17/2019, 3:23 PM
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

kpgalligan

01/17/2019, 3:23 PM
Anyway, poking around sample. Biggest issue so far has been date adapter
Right. Have to redeploy everything
e

einar

01/17/2019, 4:30 PM
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

kpgalligan

01/17/2019, 4:31 PM
Yeah. Not sure it’ll help, but can’t hurt. Star this: https://youtrack.jetbrains.com/issue/KT-29045