Socket
Socket
Sign inDemoInstall

cordova-plugin-hello-kotlin

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-plugin-hello-kotlin

![npm](https://img.shields.io/npm/dt/cordova-plugin-hello-kotlin) ![npm](https://img.shields.io/npm/v/cordova-plugin-hello-kotlin) ![GitHub package.json version](https://img.shields.io/github/package-json/v/andreszs/cordova-plugin-hello-kotlin?color=FF6D0


Version published
Weekly downloads
1
Maintainers
1
Install size
33.1 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 21 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc