{"id":16965167,"url":"https://github.com/gregswindle/cookiemaster","last_synced_at":"2026-04-08T22:31:47.980Z","repository":{"id":90405005,"uuid":"87904548","full_name":"gregswindle/CookieMaster","owner":"gregswindle","description":"Native Android extraction from com.cordova.plugins.cookiemaster.CookieMaster for reuse in native Android as well as Cordova using the Android Studio Library directory structure","archived":false,"fork":false,"pushed_at":"2017-04-11T07:45:20.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-03-21T17:34:03.074Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregswindle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-11T07:38:55.000Z","updated_at":"2017-04-11T07:47:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd3d3500-cbee-441c-89e2-ffd49b859469","html_url":"https://github.com/gregswindle/CookieMaster","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregswindle/CookieMaster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregswindle%2FCookieMaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregswindle%2FCookieMaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregswindle%2FCookieMaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregswindle%2FCookieMaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregswindle","download_url":"https://codeload.github.com/gregswindle/CookieMaster/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregswindle%2FCookieMaster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31577444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T23:45:10.917Z","updated_at":"2026-04-08T22:31:47.965Z","avatar_url":"https://github.com/gregswindle.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `CookieMaster`\n\n\u003e Native Android extraction from `com.cordova.plugins.cookiemaster.CookieMaster` for reuse in native Android as well as Cordova.\n\n[![License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://www.opensource.org/licenses/MIT)\n[![Build Status](http://img.shields.io/travis/gregswindle/CookieMaster.svg?style=flat\u0026branch=master)](https://travis-ci.org/gregswindle/CookieMaster)\n[![Coverage Status](https://img.shields.io/coveralls/gregswindle/CookieMaster.svg?style=flat)](https://coveralls.io/r/gregswindle/CookieMaster?branch=master)\n[![Greenkeeper badge](https://badges.greenkeeper.io/gregswindle/CookieMaster.svg)](https://greenkeeper.io/)\n\n---\n\u003c!-- TOC depthFrom:2 depthTo:4 withLinks:1 updateOnSave:1 orderedList:0 --\u003e\n\n- [1. Features](#1-features)\n\t- [1.1. Get a cookie by URL and name](#11-get-a-cookie-by-url-and-name)\n\t- [1.2. Set a cookie by URL and name](#12-set-a-cookie-by-url-and-name)\n\t- [1.3. Set a cookie with JSON](#13-set-a-cookie-with-json)\n\t- [1.4. Serialize an HttpCookie to JSON](#14-serialize-an-httpcookie-to-json)\n\t- [1.5. Clear all cookies](#15-clear-all-cookies)\n- [2. Setup](#2-setup)\n\t- [2.1. Maven](#21-maven)\n\t- [2.2. Gradle](#22-gradle)\n- [3. Snapshots](#3-snapshots)\n- [4. Recommended prerequisites](#4-recommended-prerequisites)\n\t- [4.1. [`Homebrew`](https://brew.sh/)](#41-homebrewhttpsbrewsh)\n\t- [4.2. [`jenv`](http://www.jenv.be/)](#42-jenvhttpwwwjenvbe)\n\t- [4.3. `java`](#43-java)\n\t- [4.4. [`gradle`](https://gradle.org/install#with-homebrew)](#44-gradlehttpsgradleorginstallwith-homebrew)\n- [5. Reports :chart_with_upwards_trend:](#5-reports-chartwithupwardstrend)\n\t- [5.1. Code quality and test reports](#51-code-quality-and-test-reports)\n\t- [5.2. Project dependency updates](#52-project-dependency-updates)\n\t- [5.3. Project dependencies tree in a Terminal](#53-project-dependencies-tree-in-a-terminal)\n\t- [5.4. Dependency reports for Web browsers](#54-dependency-reports-for-web-browsers)\n- [6. Dependency management](#6-dependency-management)\n- [7. Deployment](#7-deployment)\n- [8. [Building Android Projects with Gradle](https://spring.io/guides/gs/gradle-android/)](#8-building-android-projects-with-gradlehttpsspringioguidesgsgradle-android)\n\n\u003c!-- /TOC --\u003e\n\n## 1. Features\n\n### 1.1. Get a cookie by URL and name\n\n```java\nString url = \"https://example.com/cookies\";\nString cookieName = \"foo\";\nHttpCookie cookie = CookieMaster.getCookieValue(url, cookieName);\n```\n\n### 1.2. Set a cookie by URL and name\n\n```java\nString url = \"https://example.com/cookies\";\nString cookieName = \"foo\";\nString cookieValue = \"bar\";\nCookieMaster.getCookieValue(url, cookieName, cookieValue);\n```\n\n### 1.3. Set a cookie with JSON\n\n```java\n// json is a serialized HttpCookie\nHttpCookie cookie = CookieMaster.cookieFromJson(json);\n```\n\n### 1.4. Serialize an HttpCookie to JSON\n\n```java\n// cookie is an HttpCookie\nString jsonCookie = CookieMaster.cookieToJson(cookie);\n```\n\n### 1.5. Clear all cookies\n\n```java\nCookieMaster.clear();\n```\n\n## 2. Setup\n\nReleases ~~are~~ _will be_ published to [bintray jcenter](https://bintray.com/gregswindle/CookieMaster/CookieMaster/) and\n[maven central](https://maven-badges.herokuapp.com/maven-central/com.verizon.api/CookieMaster).\n\n[![JCenter](https://img.shields.io/bintray/v/gregswindle/CookieMaster/CookieMaster.svg?label=jcenter)](https://bintray.com/gregswindle/CookieMaster/CookieMaster/_latestVersion)\n[![Maven Central](https://img.shields.io/maven-central/v/com.verizon.api/CookieMaster.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/com.verizon.api/CookieMaster)\n\n\n### 2.1. Maven\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.verizon.api\u003c/groupId\u003e\n  \u003cartifactId\u003eCookieMaster\u003c/artifactId\u003e\n  \u003cversion\u003e0.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### 2.2. Gradle\n\nAdd `com.verizon.api:CookieMaster` to your `build.gradle`'s `dependencies`:\n\n```gradle\ncompile 'com.verizon.api:CookieMaster:0.1.0'\n```\n\n## 3. Snapshots\n\nYou can use snapshot versions through [JitPack](https://jitpack.io).\n\n3.1. Go to [JitPack project page](https://jitpack.io/#gregswindle/CookieMaster).\n\n3.2. Select `Commits` section and click `Get it` on commit you want to use (top one - the most recent).\n\n3.3. Follow displayed instructions: add repository and change dependency (NOTE: due to JitPack convention artifact group will be different).\n\n## 4. Recommended prerequisites\n\nThe following dependencies are recommended for consistent build, test, and deploy tasks:\n\n### 4.1. [`Homebrew`](https://brew.sh/)\n\nInstall [`Homebrew`](https://brew.sh/):\n```\n/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"\n```\n\n### 4.2. [`jenv`](http://www.jenv.be/)\n\nInstall [`jenv`](http://www.jenv.be/):\n\n```\n$ brew install jenv\n```\n\n### 4.3. `java`\n\nInstall [`Java`](http://davidcai.github.io/blog/posts/install-multiple-jdk-on-mac/) from a Terminal:\n\n```\n$ brew cask install java\n```\n\n\u003e #### :white_check_mark: Install several versions of `Java`\n\u003e\n\u003e If you want to test this library on several versions of `Java`, the article [_Install Multiple Java Versions on Mac_](http://davidcai.github.io/blog/posts/install-multiple-jdk-on-mac/) provides clear yet detailed instructions.\n\n### 4.4. [`gradle`](https://gradle.org/install#with-homebrew)\n\nInstall [`gradle`](https://gradle.org/install#with-homebrew) for automated build and dependency management:\n\n```\n$ brew install gradle\n```\n\n## 5. Reports :chart_with_upwards_trend:\n\n\u003e ### :white_check_mark: Generate a project report\n\u003e\n\u003e Generate project reports for all dependencies, properties, and tasks in your `\u003cproject-root\u003e/build/reports/project` directory:\n\u003e ```\n\u003e $ ./gradlew projectReport\n\u003e ```\n\n### 5.1. Code quality and test reports\n\nUse the following command to run code quality plugins and tests. If quality checks were activated (asked during generation) do check before pushing to avoid build failures on travis. Moreover, it's easy to always keep everything clean instead of doing it before release.\n\n```\n$ ./gradlew check\n```\n\n### 5.2. Project dependency updates\n\nChecks whether your project is using the latest available versions in its dependencies. If not, you'll see which upgrades are available.\n\n```\n$ ./gradlew dependencyUpdates\n```\n\n### 5.3. Project dependencies tree in a Terminal\n\nPrint the product's dependency tree in your console.\n\n```\n$ ./gradlew dependencies\n```\n\n### 5.4. Dependency reports for Web browsers\n\nGenerate a _Dependency Report_ in `HTML` and launch it in your default browser.\n\n\u003e ##### :white_check_mark: Analyze dependency conflicts\n\u003e\n\u003e To analyze conflicts, click on dependency name to activate a [`dependencyInsight`](http://www.gradle.org/docs/current/groovydoc/org/gradle/api/tasks/diagnostics/DependencyInsightReportTask.html) pop-up in the _Dependency Report_.\n\n```\n$ ./gradlew showDependenciesTree\n```\n\n## 6. Dependency management\n\n:link: Install libraries to your local `maven` repository. Useful for referencing by other projects (for testing without releasing library).\n\n```\n$ ./gradlew install\n```\n\n## 7. Deployment\n\n:globe_with_meridians: Publish the library to [jFrog Bintray](https://bintray.com/) (and therefore the world).\n\n\u003e #####  :warning: Read the [_Release process_](https://github.com/xvik/generator-lib-java#release-process) first!\n\u003e\n\u003e Before publishing the library, [read the section _Release process_](https://github.com/xvik/generator-lib-java#release-process) in the `generator-lib-java` README.md.\n\n```\n$ ./gradlew release\n```\n\n## 8. [Building Android Projects with Gradle](https://spring.io/guides/gs/gradle-android/)\n\n\u003e ### :bookmark: Tutorial\n\u003e\n\u003e Spring has a good tutorial called [_Building Android Projects with Gradle_](https://spring.io/guides/gs/gradle-android/).\n\n---\n[![java lib generator](http://img.shields.io/badge/Powered%20by-%20Java%20lib%20generator-green.svg?style=flat-square)](https://github.com/xvik/generator-lib-java)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregswindle%2Fcookiemaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregswindle%2Fcookiemaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregswindle%2Fcookiemaster/lists"}