Gradle Dependencies

Installation

Gradle Configuration

Add these lines to your settings.gradle.

dependencyResolutionManagement {
    repositories {
        ...
        maven { url = uri("https://repo.combateafraude.com/android/release") }
        maven { url = uri("https://raw.githubusercontent.com/iProov/android/master/maven/") }
        maven { setUrl("https://maven.fpregistry.io/releases") }
        maven { setUrl("https://jitpack.io") }
    }
}

Java 8 Compatibility

If Java 8 is not enabled, add support to your build.gradle:

android {
    ...
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

Adding SDK Dependency

Include the FaceLiveness SDK in your build.gradle dependencies:

dependencies {
    // If you use Protobuf Java, you should add the following dependency
    implementation("io.caf.sdk:caffaceliveness.core:{version}")
    // If you use Protobuf JavaLite, you should add that instead of the above dependency
    // implementation("io.caf.sdk:caffaceliveness.lite:{version}")
}

Last updated

Logo

2023 © Caf. - All rights reserved