SDK Setup
Add the JitPack repository to your build file:
Add it in your root build.gradle at the end of repositories.
allprojects {
repositories {
...
maven {
url 'https://jitpack.io'
credentials { username authToken }
}
}
}
Add the token to gradle.properties
:
gradle.properties
:authToken=jp_45kf9tvkijvd9c7cf34mehj1b6
Add the dependency:
Set Accura SDK as a dependency to our app/build.gradle file.
android {
defaultConfig {
...
ndk {
// Specify CPU architecture.
// 'armeabi-v7a' & 'arm64-v8a' are respectively 32 bit and 64 bit device architecture
// 'x86' & 'x86_64' are respectively 32 bit and 64 bit emulator architecture
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
packagingOptions {
pickFirst 'lib/arm64-v8a/libcrypto.so'
pickFirst 'lib/arm64-v8a/libssl.so'
pickFirst 'lib/armeabi-v7a/libcrypto.so'
pickFirst 'lib/armeabi-v7a/libssl.so'
pickFirst 'lib/x86/libcrypto.so'
pickFirst 'lib/x86/libssl.so'
pickFirst 'lib/x86_64/libcrypto.so'
pickFirst 'lib/x86_64/libssl.so'
}
}
dependencies {
...
// Accura OCR
implementation 'com.github.accurascan:AccuraOCR:5.8.3'
// Accura Face match
implementation 'com.github.accurascan:AccuraFaceMatch:3.2.7'
// Accura Liveness
implementation 'com.github.accurascan:Liveness-Android:3.4.7'
}
Add files to project assets folder:
Create "assets" folder under app/src/main and Add license file in to assets folder.
- key.license // for Accura OCR
- accuraface.license // for Accura Face Match
Last updated