Kotlin 1.3.40 has been released , except for the stability and improvement of tools, but this version is worth the update of concern include:
- Is Kotlin / JS provide support for Gradle NPM, Yarn and the Webpack
- Improved test runner for multi-platform project
- The new type of interface
- Improved performance Kotlin / Native and interoperability
- Some added to the standard library function of the experimental phase of the new
- ……
Briefly as follows:
Experimental support for the NPM and Webpack
This feature helps simplify development using Node.js, NPM, Yarn JavaScript or Webpack of the project. Team Kotlin / JS and multi-platform Gradle plugin adds support missions in order to simplify the integration process. This plugin will generate a temporary project package.json
, it will download and use to automatically manage Yarn NPM dependent, Webpack will be used behind the scenes to add all dependencies.
The plug-in will all Kotlin project Gradle declared / JS attached to the dependencies automatically maintained node_modules
folder. Now also supports the addition of NPM depend in Gradle script.
dependencies {
implementation(npm("react", "16.8.3"))
}
Experimental standard library function
ByteArray.decodeToString
withString.encodeToByteArray
CharArray.concatToString
withString.toCharArray
Another add on top of the JVM function capitalize
, it will Locale
object as a parameter.
Upgrade
- In Maven, Gradle, and npm: Use
1.3.40
as the version for the compiler and the standard library. See the docs here. - In IntelliJ IDEA and Android Studio: Update the Kotlin plugin to version 1.3.40. Use Tools | Kotlin | Configure Kotlin Plugin Updates and click the “Check for updates now” button.
- In Eclipse: Install the plugin using Marketplace.
- The command-line compiler can be downloaded from the Github release page.