mirror of
https://github.com/bez4pieci/Phonegap-Cookies-Plugin
synced 2026-04-18 00:03:40 +08:00
Update Android implementation
This commit is contained in:
+18
-2
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"name": "com.bez4pieci.cookies",
|
"name": "com.bez4pieci.cookies",
|
||||||
"cordova_name": "Cookies",
|
"cordova_name": "Cookies",
|
||||||
"description": "Cordova Cookies Plugin",
|
"description": "Cordova Cookies Plugin",
|
||||||
@@ -9,5 +9,21 @@
|
|||||||
"phonegap",
|
"phonegap",
|
||||||
"cookies"
|
"cookies"
|
||||||
],
|
],
|
||||||
"engines": []
|
"engines": [],
|
||||||
|
"cordova": {
|
||||||
|
"id": "com.bez4pieci.cookies",
|
||||||
|
"platforms": [
|
||||||
|
"ios",
|
||||||
|
"android"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/bez4pieci/Phonegap-Cookies-Plugin.git"
|
||||||
|
},
|
||||||
|
"author": "Ernests Karlsons",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/bez4pieci/Phonegap-Cookies-Plugin/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/bez4pieci/Phonegap-Cookies-Plugin#readme"
|
||||||
}
|
}
|
||||||
@@ -50,8 +50,6 @@ public class Cookies extends CordovaPlugin {
|
|||||||
|
|
||||||
public void clear() {
|
public void clear() {
|
||||||
Log.v(TAG, "Clearing cookies...");
|
Log.v(TAG, "Clearing cookies...");
|
||||||
CookieManager.getInstance().removeAllCookie();
|
CookieManager.getInstance().removeAllCookies(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user