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

Mike Wolfson

07/31/2019, 5:17 PM
Hi folks...I am running a Kotlin Everywhere in September, and was hoping to support a multi-platform codelab. I am an Android dev, and was hoping to do a simple iOS to Android multiplatform codelab but don't know of any online...does anybody have a suggestions for the simplest tutorial, or codelab I can find for this? FWIW, the codelabs supplied by Google and Jetbrains for K\E are "Intro to Kotlin Native" and then "Kotlin\JVM and Kotlin\JS). I want to show sharing simple business logic between and iOS and an Android client, would love a super simple codelab/example of this.
m

Marko Mitic

07/31/2019, 5:18 PM
I'm looking for the exact same thing 😄
k

kpgalligan

07/31/2019, 5:54 PM
I brought this up to the k/e brain trust. Lack of simple native mobile workshop. We started talking about contributing one but talk didn’t get too far. Right now we are working on a series of short blog posts. The first one is getting set up and getting shared code compiling in five minutes. We’re talking about adding small ones after that, like adding a library, doing native code with expect/actual. That kind of thing. Is there anything in particular you’d want to demonstrate?
m

Mike Wolfson

07/31/2019, 8:31 PM
I will also share my thoughts about getting this resource with the appropriate ppl.
h

hhariri

08/01/2019, 7:51 AM
@kpgalligan who’s the brain trust? 🙂 @Mike Wolfson have you checked out the new stuff we’re working on regarding hands-on at https://play.kotlinlang.org/hands-on
r

Ryan Perkins

08/01/2019, 11:40 AM
The Multiplatform codelab is JVM/JS, while he's looking for something demonstrating mobile
k

kpgalligan

08/01/2019, 2:13 PM
@hhariri To be more accurate, there was an email thread with Florina and Wojtek about K/E and Droidcon a couple months ago. I mentioned something about adding a workshop for KMP and mobile, among several other topics, but then the summer got a little crazy and I forgot about that thread till Mike’s message.
m

Mike Wolfson

08/01/2019, 2:57 PM
I am going to ask Florina and Wojtek too...in the Kotlin Everywhere Organizers Discuss Channel.
I am looking for Android/iOS multi-platform, and the current resources really don't address that (as discussed).
h

hhariri

08/01/2019, 3:06 PM
Ah sorry, yes, the iOS and Mobile one haven’t been published yet but they’re in the works.
m

Marko Mitic

08/01/2019, 3:13 PM
@hhariri can we contribute?
h

hhariri

08/01/2019, 3:14 PM
To the hands-on? Yes. We’ve made it all open source and it’s available on GitHub. We’re still refining the process, but for sure. That’s the intention.
And as you can see there are some TODO’s in there 🙂. We’re planning on adding automatic compilation checks, etc.
m

Marko Mitic

08/01/2019, 3:30 PM
Contributing entire original hands on lab seems like a big first step, could someone assist on WIP lab? Even having some suggested labs/topics would be helpful.
h

hhariri

08/01/2019, 3:31 PM
Let me talk to the folks internally and see what we could do in this regard. But in the meantime, if you see any issues, etc. please feel free to send a PR.
m

Mike Wolfson

08/01/2019, 3:43 PM
Thanks for this Hadi, (sorry the discussion got split to the other channel).
m

Marko Mitic

08/01/2019, 3:54 PM
I'm considering taking my old PoC Android/iOS/JVM-server KMP app, ironing it out and adding JS (and maybe Native console client) as example of how much of the codebase can be shared. Could use that for local K/E talk
t

tylerwilson

08/02/2019, 4:16 PM
I would love to see slightly more advanced mobile examples. The basic Android/iOS is okay, but day 2 will go beyond this very quickly. For example: - Add an API call via Ktor - Add the requisite Models for any API calls - Add the requisite coroutines support - Add the tests needed for the Models and APIs added
m

Marko Mitic

08/02/2019, 4:47 PM
Here's something I've done some time ago https://github.com/marco89nish/mitwit Ktor on client+server, coroutines (missing actual iOS implementation, DB and tests)
2 Views