Gradle Dependencies

Installation

Gradle Configuration

Add these lines to your settings.gradle.

dependencyResolutionManagement {
    repositories {
        google()
        mavenCentral()
        maven { url = uri("https://repo.combateafraude.com/android/release") }
        maven { url = uri("https://raw.githubusercontent.com/iProov/android/patch192/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 Google Play Services Location and CafSmartAuth SDK in your build.gradle dependencies:

dependencies {
    implementation("com.google.android.gms:play-services-location:21.3.0")
    implementation("io.caf.sdk:smart-auth:{version}")
}

Last updated

Logo

2023 © Caf. - All rights reserved