Young a046b7354c First commit %!s(int64=4) %!d(string=hai) anos
..
.github a046b7354c First commit %!s(int64=4) %!d(string=hai) anos
hooks a046b7354c First commit %!s(int64=4) %!d(string=hai) anos
src a046b7354c First commit %!s(int64=4) %!d(string=hai) anos
.gitignore a046b7354c First commit %!s(int64=4) %!d(string=hai) anos
README.md a046b7354c First commit %!s(int64=4) %!d(string=hai) anos
package.json a046b7354c First commit %!s(int64=4) %!d(string=hai) anos
plugin.xml a046b7354c First commit %!s(int64=4) %!d(string=hai) anos

README.md

cordova-plugin-hello-kotlin

A simple example of a Cordova plugin that uses Kotlin (instead of Java) to implement the native Cordova plugin interface on Android.

Since cordova-android@7 currently doesn't implicitly support Kotlin, this plugin uses hook scripts to add the necessary native config to make the Kotlin work in the generated Android project and to remove the Kotlin source files from the native Android project on uninstalling the plugin.

  • Clone the test project: git clone https://github.com/dpa99c/cordova-plugin-hello-kotlin-test
  • Add the Android platform: cordova platform add android
  • Run the test app: cordova run android