Home Update Google: Use Kotlin for brand spanking new Android apps

Google: Use Kotlin for brand spanking new Android apps

226


Google is doubling down on its assist of the Kotlin language for Android cellular growth, with the advice that each one new Android initiatives be developed in Kotlin, the JVM-based different to Java. But whereas Android growth will grow to be “Kotlin-first,” Java and C++ will proceed to be supported. 

With Kotlin, there may be much less to kind, much less to check, and fewer to keep up, stated Chet Haase, who leads the Android UI group at Google, on the Google I/O developer convention in Mountain View, CA. Unlike Java, Kotlin doesn’t require builders to write down giant quantities of “boilerplate” code. Haase even joked that builders’ typing abilities may even be eroding due to this. 

Google’s newest advice follows the corporate’s May 2017 endorsement of Kotlin as a supported language for Android growth alongside Java. Since then, Kotlin has grow to be the preferred language for Android growth. Today greater than 50 p.c {of professional} Android builders use Kotlin. 

In line with Google’s Kotlin assist, many APIs for Android Jetpack software program elements are being launched first for Kotlin builders, and a Kotlin-first reactive UI programming library, Jetpack Compose, is being developed as a part of the Android Open Source Project (AOSP). In addition to investing extra in instruments, each Google and Kotlin inventor JetBrains are providing coaching within the language.

Google nonetheless helps using Java and C++ for Android growth. Google stated the Android toolchain will assist Java desugaring for bytecode transformations by way of Java 10, and desugaring quickly might be enabled for common OpenJDK libraries as nicely. A brand new toolchain for C++ is also being provided.



Source hyperlink

LEAVE A REPLY

Please enter your comment!
Please enter your name here