So, I’m writing an Android app in Kotlin currently...
# squarelibraries
m
So, I’m writing an Android app in Kotlin currently using Room for SQLite. At some point in the future I want to use as much of the Kotlin code as possible in an iOS version. So I’m considering migrating from Room to SQLDelight. Is this a no-brainer? Is there any reason why I should stick with Room for now (perhaps wait and see how the landscape changes in the next 6 months) or is it a case of sooner-the-better? #room
k
What’s the concern I guess? Having conversed with what I suspect would be all of the relevant parties, I would not expect the landscape to change for Room in the next 6 months. Not taking into consideration the relative merits of Sqldelight vs Room on their own, if you want to share with iOS, Sqldelight is a no-brainer. I’m super, super partial at this point, but I also like that Sqldelight embraces SQL rather than trying to bury it as ORMs tend to do.
Room’s cool too, but if you want iOS, Sqldelight (unless you want J2objc, but I’ll assume that’s a hard pass)
m
Thanks Kevin. Yeah, I was just speculating that someone might come up with a multi-platform Room in the near future. Other than that, switching to SQLDelight does seem like a no-brainer.
Is there a current best practise regarding migrating from the LiveData support of Room to SQLDelight?