version 2.1.1

add package.json, upload plugin to cordova plugins
This commit is contained in:
Hevin 2016-04-08 09:43:00 +08:00
parent 20f1eb6e27
commit 24dea0821f
2 changed files with 35 additions and 1 deletions

35
package.json Normal file
View File

@ -0,0 +1,35 @@
{
"name": "jpush-phonegap-plugin",
"version": "2.1.1",
"description": "JPush for cordova plugin",
"cordova": {
"id": "cn.jpush.phonegap.JPushPlugin",
"platforms": [
"ios",
"android"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/jpush/jpush-phonegap-plugin.git"
},
"keywords": [
"JPush",
"push",
"ecosystem:cordova",
"cordova-ios",
"cordova-android"
],
"engines": [
{
"name": "cordova",
"version": ">=3.0"
}
],
"author": "jpush",
"license": "Apache 2.0 License",
"bugs": {
"url": "https://github.com/jpush/jpush-phonegap-plugin/issues"
},
"homepage": "https://github.com/jpush/jpush-phonegap-plugin#readme"
}

View File

@ -253,7 +253,6 @@ JPushPlugin.prototype.setDebugMode = function(mode) {
}
}
//setDebugMode
JPushPlugin.prototype.clearAllNotification = function() {
if(device.platform == "Android") {
data = [];