<commit_before># ZXing Android Embedded

This is an Android library based on the [ZXing Android Barcode Scanner application][2]
for embedding in Android applications. This is not affiliated with the official ZXing project.

Generally it is recommended to scan a barcode [via intents][3].
There are however some cases in which it is not feasible:

* Your users cannot install the Barcode Scanner application.
* You need to customise the barcode scanning logic.
* You need to customise the UI.

In these cases, this library may be more suitable.

## Version 3

Where [version 2][4] was essentially just a stripped-down version of the [Barcode Scanner application][2],
version 3 is a rewrite of a large part of the codebase, making it more versatile and customizable.

With the rewrite, many APIs for UI customization were removed. Instead, it is now recommended
to create a custom Activity using BarcodeView instead.

Other notable changes:
* The camera is now loaded in a background thread, making the activity start faster.
* The camera preview and decoding now functions correctly in any orientation.

## Adding aar dependency with Gradle

From version 3 this is a single library, supporting Gingerbread and later versions of Android
(API level 9+). If you need support for earlier Android versions, use [version 2][4].

Add the following to your build.gradle file:

```groovy
repositories {
    mavenCentral()

    maven {
        url "https://dl.bintray.com/journeyapps/maven"
    }
}

dependencies {
    compile 'com.journeyapps:zxing-android-embedded:3.0.0-beta4@aar'
    compile 'com.google.zxing:core:3.2.0'<commit_msg>Recommend jcenter repo.<commit_after># ZXing Android Embedded

This is an Android library based on the [ZXing Android Barcode Scanner application][2]
for embedding in Android applications. This is not affiliated with the official ZXing project.

Generally it is recommended to scan a barcode [via intents][3].
There are however some cases in which it is not feasible:

* Your users cannot install the Barcode Scanner application.
* You need to customise the barcode scanning logic.
* You need to customise the UI.

In these cases, this library may be more suitable.

## Version 3

Where [version 2][4] was essentially just a stripped-down version of the [Barcode Scanner application][2],
version 3 is a rewrite of a large part of the codebase, making it more versatile and customizable.

With the rewrite, many APIs for UI customization were removed. Instead, it is now recommended
to create a custom Activity using BarcodeView instead.

Other notable changes:
* The camera is now loaded in a background thread, making the activity start faster.
* The camera preview and decoding now functions correctly in any orientation.

## Adding aar dependency with Gradle

From version 3 this is a single library, supporting Gingerbread and later versions of Android
(API level 9+). If you need support for earlier Android versions, use [version 2][4].

Add the following to your build.gradle file:

```groovy
repositories {
    jcenter()
}

dependencies {
    compile 'com.journeyapps:zxing-android-embedded:3.0.0-beta4@aar'
    compile 'com.google.zxing:core:3.2.0'
{'fraction_non_alphanumeric': 0.060320452403393024, 'fraction_numerical': 0.011310084825636193, 'mean_word_length': 4.433447098976109, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3153147', 'n_tokens_mistral': 884, 'n_tokens_neox': 839, 'n_words': 440}