cordova-plugin-hello-kotlin

0.1.0 • Public • Published

npm npm GitHub package.json version GitHub code size in bytes GitHub top language GitHub GitHub last commit

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.

Requirements

  • Cordova Android 9.0.0

Install

Install from NPM:

  cordova plugin add cordova-plugin-hello-kotlin

The plugin will add these settings into your project's config.xml file:

  • GradlePluginKotlinEnabled = true
  • GradlePluginKotlinVersion = 1.5.20

Test method

This sample plugin provides a single hello method added to the cordova.plugins scope.

var onSuccess = function(output){
	console.log(output);
};
var onFailure = function(output){
	console.error(output);
}
cordova.plugins.HelloKotlin.hello("Plugin Test", onSuccess, onFailure);

Test app screenshot

Cordova Kotlin Plugin Test

Package Sidebar

Install

npm i cordova-plugin-hello-kotlin

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

33.9 kB

Total Files

12

Last publish

Collaborators

  • andreszs