From 68ea4349a33844d9aa85861aa7d3f4911edc80aa Mon Sep 17 00:00:00 2001 From: Joe Lambert Date: Sat, 25 Apr 2015 13:58:20 +0100 Subject: [PATCH] Updated id for NPM release --- README.md | 10 ++++++++-- package.json | 29 +++++++++++++++++++++++++++++ plugin.xml | 2 +- 3 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 package.json diff --git a/README.md b/README.md index 3d813ba..9174f1e 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,16 @@ Cordova/PhoneGap plugin for accessing the native app's version and build number ## Installation -Using the Cordova CLI: +The plugin can be installed with the Cordova CLI: ```shell -cordova plugin add https://github.com/Rareloop/cordova-plugin-app-version.git +cordova plugin add cordova-plugin-appversion +``` + +The plugin is hosted on NPM so requires Cordova CLI `5.0.0` as a minimum. If you have any issues installing, make sure you have the most upto date version of Cordova from NPM: + +```shell +npm install -g cordova ``` ## Usage diff --git a/package.json b/package.json new file mode 100644 index 0000000..3cd18ff --- /dev/null +++ b/package.json @@ -0,0 +1,29 @@ +{ + "name": "cordova-plugin-appversion", + "version": "1.0.0", + "description": "Access the native app version & build number in JavaScript", + "cordova": { + "id": "cordova-plugin-appversion", + "platforms": [ + "android", + "ios" + ] + }, + "repository": { + "type": "git", + "url": "https://github.com/Rareloop/cordova-plugin-app-version.git" + }, + "keywords": [ + "cordova", + "appversion", + "ecosystem:cordova", + "cordova-ios", + "cordova-android" + ], + "author": "Rareloop (http://rareloop.com)", + "license": "MIT", + "bugs": { + "url": "https://github.com/Rareloop/cordova-plugin-app-version/issues" + }, + "homepage": "https://github.com/Rareloop/cordova-plugin-app-version" +} diff --git a/plugin.xml b/plugin.xml index 7528c84..be914fb 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,6 +1,6 @@ + id="cordova-plugin-appversion" version="1.0.0"> App Version Expose the native app version to JavaScript MIT