<commit_before>###Android Cookie Jar

A CookieStore implementation for Android apps that keeps cookies in a SharedPreferences instance.

This is by no means the most efficient method for saving cookies, and really shouldn't be considered best practice, but it works, and doesn't require sqlite setup.

Based on [java.net.InMemoryCookieStore](https://github.com/szitnik/SoftwareAnalysis/blob/master/SoftwareSources/jdk1.8.0/src/java/net/InMemoryCookieStore.java) 

####Installation

```gradle
dependencies {
    compile 'com.tsums.androidcookiejar:androidcookiejar:1.0@aar'
}
```

####Usage

In your Application class:

```java
CookieHandler.setDefault(
    new CookieManager(
        PersistentCookieStore.getInstance(this),
            CookiePolicy.ACCEPT_ORIGINAL_SERVER));
```

AndroidCookieJar has been tested with Apache UrlConnection, Volley, and OkHttp.<commit_msg>updating gradle dependencies description in the readme<commit_after>###Android Cookie Jar

A CookieStore implementation for Android apps that keeps cookies in a SharedPreferences instance.

This is by no means the most efficient method for saving cookies, and really shouldn't be considered best practice, but it works, and doesn't require sqlite setup.

Based on [java.net.InMemoryCookieStore](https://github.com/szitnik/SoftwareAnalysis/blob/master/SoftwareSources/jdk1.8.0/src/java/net/InMemoryCookieStore.java) 

####Installation

```gradle
dependencies {
    compile 'com.tsums.androidcookiejar:androidcookiejar:1.1@aar'
}
```

####Usage

In your Application class:

```java
CookieHandler.setDefault(
    new CookieManager(
        PersistentCookieStore.getInstance(this),
            CookiePolicy.ACCEPT_ORIGINAL_SERVER));
```

AndroidCookieJar has been tested with Apache UrlConnection, Volley, and OkHttp.
{'fraction_non_alphanumeric': 0.0907563025210084, 'fraction_numerical': 0.0056022408963585435, 'mean_word_length': 5.2229965156794425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '694955', 'n_tokens_mistral': 523, 'n_tokens_neox': 484, 'n_words': 149}