After yesterday's news of Kotlin becoming a first-class language for Android, I think this would be nice to have.
if i remember correctly it requires the java jvm. which is not quite ready yet
Maybe this will work without a jvm: https://github.com/JetBrains/kotlin-native/
+1
@yenon looks interesting. I'll try it.
$ pacman -Ss kotlin
community/kotlin 1.2.21-1
The Kotlin programming language
This search available packages command reveals that kotlin is available on device in Arch Linux Termux PRoot among 8409 Arch Linux packages available today.
$ pacman -S kotlin
resolving dependencies...
:: There are 2 providers available for java-environment>=8:
:: Repository extra
1) jdk8-openjdk 2) jdk9-openjdk
Enter a number (default=1): 1
looking for conflicting packages...
Packages (24) hicolor-icon-theme-0.17-1 java-environment-common-3-1 java-runtime-common-3-1
jdk8-openjdk-8.u111-1 jre8-openjdk-8.u111-1 jre8-openjdk-headless-8.u111-1
kbproto-1.0.7-1 libice-1.0.9-2 libsm-1.2.2-2 libx11-1.6.5-1 libxau-1.0.8-3
libxcb-1.12-1 libxdmcp-1.1.2-1 libxext-1.3.3-1 libxmu-1.1.2-1 libxt-1.1.5-1
nspr-4.18-1 nss-3.35-1 xcb-proto-1.12-3 xdg-utils-1.1.2-1 xextproto-7.3.0-1
xorg-xset-1.2.3-1 xproto-7.0.31-1 kotlin-1.2.21-1
Total Download Size: 66.88 MiB
Total Installed Size: 187.70 MiB
:: Proceed with installation? [Y/n]
The install a package pacman command shows that this is a serious install. Enjoy kotlin and more than eighty four hundred packages on device in Arch Linux in Termux PRoot 馃幖馃幎
Still any hope in termux package repo?
It works as well as java sdk does. Just tried it then and compiled hello world. The openjdk package is disabled because it doesn't work that well.
The kotlin compiler needs invokedynamic (Kotlin compiler on android), which is a Java 8 feature only available in android 8 (`invokedynamic` on android sdk<26 (Oreo)?).
So, it "should" work on android 8 - perhaps someone could try this?
It only requires java 8 starting from 1.1.2 - perhaps <1.1.2 will work?
Any progress with making available a kotlin package natively for termux, without arch?
Even if it works only on android 8+, it would be a good addition.
Most helpful comment
This search available packages command reveals that kotlin is available on device in Arch Linux Termux PRoot among 8409 Arch Linux packages available today.
The install a package
pacmancommand shows that this is a serious install. Enjoy kotlin and more than eighty four hundred packages on device in Arch Linux in Termux PRoot 馃幖馃幎