<commit_before>PrefKit
============

[![wercker status](https://app.wercker.com/status/9211f47f64bd20cbbed355f3001c6d0e/s/master "wercker status")](https://app.wercker.com/project/byKey/<KEY>)
[![jitpack](https://jitpack.io/v/kazy1991/PrefKit.svg)](https://jitpack.io/#kazy1991/PrefKit)
[![Coverage Status](https://coveralls.io/repos/github/kazy1991/PrefKit/badge.svg?branch=integrate_coveralls)](https://coveralls.io/github/kazy1991/PrefKit?branch=integrate_coveralls)
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](http://fand.mit-license.org/)

Typesafe key-value store for Android. Inspired by Retrofit.

Update
--------

* 0.0.2 First release.


How to
--------

##### Step 1. Add the JitPack repository to your build file.

```groovy
  repositories {
    maven {
      url "https://jitpack.io"
    }
  }
```

##### Step 2. Add the dependency.

```groovy
  dependencies {
    compile 'com.github.kazy1991:PrefKit:0.0.2'
  }
```

##### Step 3. Define get/put method with Interface.

```java
@PrefSchema("SampleSchema")
interface SampleSchema {

    String WELCOME_DIALOG = "welcome_dialog";

    @PrefKey(WELCOME_DIALOG)
    void putWelcomeDialogFlag(boolean value);

    @PrefKey(WELCOME_DIALOG)
    boolean getWelcomeDialogFlag(boolean defaultValue);
}
```

`@PrefSchema`: Define sharedPreference name.

`@PrefKey`: Define key name.

#### Step 4. Access sharedPreference via interface.

```java
PrefKit prefKit = new PrefKit(this);
SampleSchema sampleSchema = prefKit.create(SampleSchema.class);
sampleSchema.setWelcomeDialogFlag(true);
sampleSchema.getWelcomeDialogFlag(false);
```

License
-------

MIT License
<commit_msg>Fix coveralls badge<commit_after>PrefKit
============

[![wercker status](https://app.wercker.com/status/9211f47f64bd20cbbed355f3001c6d0e/s/master "wercker status")](https://app.wercker.com/project/byKey/<KEY>)
[![jitpack](https://jitpack.io/v/kazy1991/PrefKit.svg)](https://jitpack.io/#kazy1991/PrefKit)
[![Coverage Status](https://coveralls.io/repos/github/kazy1991/PrefKit/badge.svg?branch=master)](https://coveralls.io/github/kazy1991/PrefKit?branch=master)
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](http://fand.mit-license.org/)

Typesafe key-value store for Android. Inspired by Retrofit.

Update
--------

* 0.0.2 First release.


How to
--------

##### Step 1. Add the JitPack repository to your build file.

```groovy
  repositories {
    maven {
      url "https://jitpack.io"
    }
  }
```

##### Step 2. Add the dependency.

```groovy
  dependencies {
    compile 'com.github.kazy1991:PrefKit:0.0.2'
  }
```

##### Step 3. Define get/put method with Interface.

```java
@PrefSchema("SampleSchema")
interface SampleSchema {

    String WELCOME_DIALOG = "welcome_dialog";

    @PrefKey(WELCOME_DIALOG)
    void putWelcomeDialogFlag(boolean value);

    @PrefKey(WELCOME_DIALOG)
    boolean getWelcomeDialogFlag(boolean defaultValue);
}
```

`@PrefSchema`: Define sharedPreference name.

`@PrefKey`: Define key name.

#### Step 4. Access sharedPreference via interface.

```java
PrefKit prefKit = new PrefKit(this);
SampleSchema sampleSchema = prefKit.create(SampleSchema.class);
sampleSchema.setWelcomeDialogFlag(true);
sampleSchema.getWelcomeDialogFlag(false);
```

License
-------

MIT License

{'fraction_non_alphanumeric': 0.1690734055354994, 'fraction_numerical': 0.029482551143200964, 'mean_word_length': 4.588235294117647, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 14, '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': '3120198', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1135, 'n_words': 194}