I got a Kotlin app running on iOS


#1

I created a test app using the libgdx (Java) game framework, with my code all written in Kotlin.

I used RoboVM to get the app running on iOS.

Here is a video (the app is only a proof of concept, it renders moving circles to show the game is running)

https://www.youtube.com/watch?v=qdT8UuEDQts


#2

This is awesome. Could you please share your code?


#3

The source code is nothing special, just a test of graphics using Libgdx libraries with a Kotlin project. The tricky part is RoboVM only has a plugin for eclipse, so I had to do things from the command line, and RoboVM documentation is still immature.

I made a github repo with the build script I ended up using.
https://github.com/jrenner/RoboVM.sh

RoboVM just turns Java bytecode into native code, so I don’t think it cares if the source was Java or Kotlin.