Decoder for PDF417 data from Costa Rican id cards.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
Jenkinsfile
LICENSE
README.rst
build.gradle
settings.gradle

README.rst

crid-decoder

Build status

Decoder for PDF417 data from Costa Rican id cards.

https://docs.kuralabs.io/crid-decoder/

Usage

Import decoder and result object:

import io.kuralabs.crid.decoder.IdDecoder;
import io.kuralabs.crid.decoder.Person;
// byte[] decodingKey = new byte[] {(byte)0x00, ...};
IdDecoder decoder = new IdDecoder(decodingKey);
Person person = decoder.decode(scanResult);
// Person.getId(); Person.getName(); ...

Android

Include the jitpack repository in your global build.gradle:

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

Add the following dependency to your app build.gradle:

dependencies {
    // ...
    // CRID Decoder
    compile 'io.kuralabs:crid-decoder:0.1.0'
}

Compiling the library

First, install gradle and the wrapper at its version 3.3:

gradle wrapper --gradle-version 3.3

Then, build jar archive:

gradle jar

Library will be available in:

build/libs/crid-decoder-<version>.jar

Running the test suite

Build and run test suite:

gradle test

Report will be available in:

build/reports/tests/test/index.html

Building documentation

Build reference documentation:

gradle doc

Generated documentation will be available in:

build/docs/javadoc/

License

Copyright (C) 2017 KuraLabs S.R.L

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.