Add the JitPack repository to your root's build.gradle 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
authToken=jp_ssguccab6c5ge2l4jitaj92ek2
Add the dependency in App's build.gradle
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_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
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 {
...
implementation 'com.github.accurascan:AccuraFaceMatch:3.2.5'
}
Add licence files to project assets folder:
Create "assets" folder under app/src/main and Add license file in to assets folder.
- accuraface.license // for Accura OCR