<commit_before># Sleep as Android - Captcha support

## Introduction

This open-source library contains classes that are useful for developing
additional captcha into Sleep as Android application.

The library is under heavy development :-), but ready for use. Check the
[issue tracker][issues] to see what's happening.


## Usage

When you use Gradle add the following maven repository and dependency with the latest version
to your `build.gradle` file to use the library:

```groovy
repositories {
    jcenter()
}

dependencies {
    compile 'com.urbandroid.sleep:captcha-support:0.2.1@aar'
}
```
## Captcha Manifest

Your captcha activity must be exported and single top. OPEN action is mandatory in intent filter otherwise
Sleep as Android will not find your captcha.

```xml
<manifest ... >

    <application ... >

        <activity
            android:name=".MyCleverCaptchaActivity"
            android:launchMode="singleTop"
            android:label="@string/captcha_label"
            android:exported="true"
            >
            <meta-data android:name="com.urbandroid.sleep.captcha.meta.has_difficulty" android:value="true"/>
            <intent-filter><commit_msg>support for separate config activity<commit_after># Sleep as Android - Captcha support

## Introduction

This open-source library contains classes that are useful for developing
additional captcha into Sleep as Android application.

The library is under heavy development :-), but ready for use. Check the
[issue tracker][issues] to see what's happening.


## Usage

When you use Gradle add the following maven repository and dependency with the latest version
to your `build.gradle` file to use the library:

```groovy
repositories {
    jcenter()
}

dependencies {
    compile 'com.urbandroid.sleep:captcha-support:0.2.3@aar'
}
```
## Captcha Manifest

Your captcha activity must be exported and single top. OPEN action is mandatory in intent filter otherwise
Sleep as Android will not find your captcha.

```xml
<manifest ... >

    <application ... >

        <activity
            android:name=".MyCleverCaptchaActivity"
            android:launchMode="singleTop"
            android:label="@string/captcha_label"
            android:exported="true"
            >
            <meta-data android:name="com.urbandroid.sleep.captcha.meta.has_difficulty" android:value="true"/>
            <intent-filter>
{'fraction_non_alphanumeric': 0.08874005860192549, 'fraction_numerical': 0.0025115110925073253, 'mean_word_length': 3.3692870201096894, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '392310', 'n_tokens_mistral': 672, 'n_tokens_neox': 613, 'n_words': 225}