/cordova-support-kotlin

Cordova Support Kotlin

Primary LanguageJavaScriptMIT LicenseMIT

npm npm

cordova-support-kotlin

kotlin-128x128

This Cordova plugin help you support kotlin to your android project, At the same time you can use other Cordova plugins that rely on kotlin.

Installation

Add This plugin in your project:

cordova plugin add cordova-support-kotlin --save

Setting

Kotlin uses the latest version of latest.integration by default. You can set the version you need and configure it like this in config.xml:

<platform name="android" kotlin="1.2.50">
    ...
</platform>

Set additional apply plugin

<platform name="android">
    ...
    <apply-plugin>kotlin-android-extension</apply-plugin>
    <apply-plugin>kotlin-apt</apply-plugin>
    ...
</platform>