Getting started

This page presents the first steps to using the Identity SDK for Android.

Terms & Policies

When using our SDKs, please make sure that you agree with our **** Privacy Policy and our Terms and Conditions of Use.

Current version

Especial version

Compatibility

Project settings

Add these settings to your app-level build.gradle:

android {
    ...
    // Enable Data Binding, depending on the version of com.android.tools.build:gradle
    // If com.android.tools.build:gradle >= 4java
    buildFeatures {
        dataBinding = true
    }
    
    // If com.android.tools.build:gradle < 4
    dataBinding.enabled = true
    
    // Java 1.8 compatibility, allowing lambda functions
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }
}

Since our SDKs use Data Binding in their activities, you need to enable this setting in your app. The compileOptions setting is required for the lambdas functions internal to the SDK, which were released in Java 8.

Importing the SDK

To import the SDK, add our maven repository to your project-level build.gradle:

buildscript {
    ...
}
allprojects {
    repositories {
        ...
        maven { url 'https://repo.combateafraude.com/android/release' }
    }
}

After that, add our dependencies that you want to use to your app-level build.gradle:

dependencies {
    ...
    implementation 'com.combateafraude.sdk:identity:{sdkVersion}'
}

Last updated

Logo

2023 © Caf. - All rights reserved