https://kotlinlang.org logo
#android
Title
# android
m

Mohamed Ibrahim

05/28/2020, 11:32 AM
hello there, I just want to know if there’s a server rendering solution for Android, like getting json describe the ui and a generator in android to do that, I know about compose but I need a production ready solution
a

allan.conda

05/28/2020, 11:40 AM
how about https://github.com/cashapp/contour? Although not exactly the same as Compose
m

Mohamed Ibrahim

05/28/2020, 11:52 AM
did you try those libs?
a

allan.conda

05/28/2020, 11:53 AM
well no, I just heard about contour today 😄
l

louiscad

05/28/2020, 12:39 PM
@Mohamed Ibrahim I'm using #splitties (the version
3.0.0-dev-056
hosted on https://dl.bintray.com/louiscad/splitties-dev). I'm not doing server rendering, but I know it's definitely possible with Splitties. Do you have any specific question?
m

Mohamed Ibrahim

05/28/2020, 12:42 PM
If you you could give me an example of the back end model to use it in server rendering well I could convince my team to use it
l

louiscad

05/28/2020, 12:45 PM
@Mohamed Ibrahim Splitties is just extensions to do plain Views. The backend model is up to you (and your team), and then, it's just `if`s and `when`s, composition, implementation and inheritance to condition creating, styling, layout…
👍 1
v

Vinay Gaba

05/28/2020, 3:13 PM
one of them is deprecated
and Lona hasn’t yet released the android side of it
but these are/were powering their production apps
at least some screens
s

Steve

05/28/2020, 3:33 PM
I have to say, when we tried doing this, it was a terrible, terrible thing. We spent so much time trying to get something to work, and I guarantee you that we spent more time doing that than we saved by being able to change the UI without updating the app.