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

krtko

07/24/2018, 11:29 PM
Hey all, do you use any web frameworks with Kotlin? I have been developing my own with the idea of having abstracted ViewControllers, Routing, etc in a multi-platform way. Basically Everything is cross-platform except for the views. Would anyone be interested in this? I didn't originally plan on open sourcing it since I figured it would be to custom tailored to my own requirements. Also I figured most ppl use either React or Angular, which I am not a fan of and my approach might be to much like an iOS/Android app for web developers.
👍 2
n

Nikky

07/25/2018, 6:36 AM
is usually use ktor, but i'd want to try out a multiplatform like way
o

orangy

07/25/2018, 7:23 AM
I feel like it’s web client framework, not server, since react and angular are mentioned
This sounds interesting, but I’d like to have some more details. What’s multiplatform there?
k

krtko

07/25/2018, 3:57 PM
Its not a server framework, its multi-platform user application framework. Its essentially a UI application framework without the UI in it. Its custom tailored to my needs, but I could rewrite it to be more general. It works on JS and Android currently. But I am an iOS developer as well and I hope to port it to iOS once Kotlin Native moves into beta.
o

orangy

07/25/2018, 6:15 PM
Yep, that’s really interesting. We could discuss it when you have time and can share the code. This is something the whole multiplatform story is missing now. I think I could bring some more JetBrains people who are working with some similar stuff internally, but we don’t have it xplat yet, only JS and it’s React-based.
k

krtko

07/25/2018, 7:28 PM
Huh interesting. Jet Brains is working on their own solution. So it includes a mutli-platform view system?
I'm mildly afraid to put in the effort to make it generally usable and find that most JS developer aren't interested because it too much like writing an iOS or Android app and not enough like React or Angular
o

orangy

07/25/2018, 7:32 PM
Nope, we are working on a custom-built internal UI stuff, based on React for some internal apps. Nothing planned for a public framework or something. At least for now.
Our general motto here is “whatever you can unit test should go into common code, and UI should be platform specific”. So for a kind of MVVM system, everything but view should be multiplatform.
k

krtko

07/25/2018, 7:47 PM
Ya I feel you there
j

josephivie

07/27/2018, 4:51 PM
I'm actually working on flexible cross-platform views, too. I already have desktop and Android implemented, if you have any interest in that.
3 Views