We Love Kotlin and JVM!
Now it is time to stress the cross-platform nature of the
kt-mvvm-demo you write your application once and deploy it to desktop, Android, iOS and browser
with the help of portable DukeScript presenters.
The sample project comes
with classical Android Gradle
installDebug task to package your application
as an Android
.apk file and deploy it to your device or simulator:
One can package the same code
as an iOS
.ipa file with the help of Intel’s
Multi OS Engine when running on Mac OS X.
First of all list your simulators and then use one of them to launch your
The same application
the browser. The
bck2brwsrShow tasks generates necessary
.js files and
launches a browser with the application
The files in
contain everything needed to execute your application and as such they can be
deployed to any HTTP server as a static content.
With Kotlin MVVM API
you can write your code once, deploy and display it everywhere
gradlew run, Android -
gradlew moeLaunch, browser -
gradlew bck2brwsrShow) while
using the power of Kotlin, its libraries and any other JVM libraries
on every target platform.
The JVM Portability
The fact that one can execute the same Kotlin application on all the above platforms is not like the traditional Kotlin.js and Kotlin.native portability. With Kotlin.xxx one only gets the portability of the Kotlin language, but not the libraries.
kt-mvvm-demo project you may bring with yourself JVM libraries - e.g.
JARs - from your previous life (e.g. written in Java & other JVM languages)
that otherwise can’t go with you to the Kotlin js and native worlds.
We love Kotlin on the JVM!