LogoLogo
Useful links
  • Home
  • Product guides
  • API
  • SDKs
  • Overview
  • First steps
  • ANDROID
    • Getting Started with the SDK
    • Standalone Modules
      • Document Detector
        • Release Notes
        • Current Version
        • Requirements
        • Gradle Dependencies
        • Gradle Source Code
        • Setting up the SDK
          • Setting properties
          • Capture Stages
          • Messages Settings
          • Customization
          • Security Settings
          • Detection Steps
          • Upload Mode
          • Advanced Settings
            • Proxy configuration
            • Preview configuration
        • Start Document Detection
        • Source Code
        • Google security form
        • Reduce SDKs size
        • SDKs response
        • References
        • FAQ
      • Face Liveness
        • Release Notes
        • Current Version
        • Requirements
        • Gradle Dependencies
        • Gradle Source Code
        • SDK Lifecycle
        • Building the SDK
        • Start Liveness Verification
        • Source Code
        • References
        • Advanced Features
        • FAQ
      • Face Authenticator
        • Release Notes
      • Smart Auth
        • Release Notes
        • Current Version
        • Requirements
        • Gradle Dependencies
        • Gradle Source Code
        • Permissions
        • SDK Lifecycle
        • Building the SDK
        • Start Smart Authentication
        • Source Code
        • References
        • FAQ
      • Face Liveness (deprecated)
        • Release Notes
  • iOS
    • Getting Started with the SDK
    • Standalone Modules
      • Document Detector
        • Release Notes
        • Current Version
        • Requirements
        • Installing the SDK
        • Setting up the SDK
          • Setting properties
          • Messages Settings
          • Customization
          • Detection Steps
          • Upload Mode
          • Advanced Settings
            • Proxy configuration
            • Preview configuration
        • Start Document Detection
        • References
        • FAQ
      • Face Liveness
        • Release Notes
        • Installation
        • Current Version
        • Requirements
        • SDK Lifecycle
        • Building the SDK
        • Start Liveness Verification
        • Source Code
        • References
        • FAQ
      • Face Authenticator
        • Release Notes
        • Installation
        • Current Version
        • Requirements
        • Building the SDK
        • Start the SDK
        • References
        • FAQ
      • Smart Auth
        • Release Notes
        • Installation
        • Current Version
        • Requirements
        • SDK Lifecycle
        • Building the SDK
        • Start Smart Authentication
        • Source Code
        • References
        • FAQ
      • Face Liveness (deprecated)
        • Release Notes
  • REACT NATIVE
    • Standalone Modules
      • Document Detector
        • Release Notes
        • Current Version
        • Requirements
        • Installation
        • Hooks
        • Start Document Verification
        • Source Code
        • TypeScript References
        • Customizing Style
        • FAQ
      • Face Liveness
        • Release Notes
        • Current Version
        • Requirements
        • Installation
        • Hooks
        • Start Liveness Verification
        • Source Code
        • TypeScript References
        • FAQ
      • Face Authenticator
        • Release Notes
        • Current Version
        • Requirements
        • Installation
        • Hooks
        • Start Authentication Verification
        • Source Code
        • TypeScript References
        • FAQ
      • Smart Auth
        • Getting started
        • Release notes
        • Using Native Modules
          • Requirements
          • Gradle Source Code
          • Podfile Source Code
          • Native Module Android
          • Native Module iOS
          • Import Native Modules
          • Source Code
          • TypeScript References
          • FAQ
        • Using Expo Modules
          • Requirements
          • Create Local Expo Module
          • Gradle Source Code
          • Podspec Source Code
          • Native Module Android
          • Native Module iOS
          • Import Expo Modules
          • Source Code
          • TypeScript References
          • FAQ
  • WEB (JAVASCRIPT)
    • Standalone Modules
      • Document Detector
        • Getting started
        • SDK builder options
          • Analytics
          • Appearance
          • Messages
        • SDK methods
        • Event listeners
        • Customization
        • Release notes
      • Face Liveness
        • Customization
        • Release notes
      • Face Authenticator
        • Customization
        • Release notes
      • Smart Auth
        • SDK errors
        • Customization
        • Release notes
LogoLogo

2025 © Caf. - All rights reserved

On this page
  • Overview
  • Features
  • Requirements
  • Installation
  • Gradle Configuration
  • Usage
  • Module Architecture
  1. ANDROID
  2. Standalone Modules

CafSDK

Last updated 1 month ago

Welcome to the documentation for CafSDK, a unified and modular Android SDK that provides robust solutions for document detection and face liveness validation.



Overview

CafSDK is a comprehensive Android SDK that integrates two primary functionalities:

  • Document Detection: Powered by the framework and TensorFlow Lite.

  • Face Liveness Validation: Offered via the module, which supports both iProov and FaceTec 2D providers. These providers can be used independently or in combination, giving you the flexibility to tailor the solution to your needs.

This unified approach allows developers to include only the necessary modules, reducing bloat and simplifying integration.


Features

  • Modularity: Integrate the full SDK or select individual components.

  • Ease of Integration: Using BoM (bill of material) for version management ensures compatibility between SDKs, avoiding conflicts and speeding up integration and use.

  • Security and Accuracy: Leverages advanced frameworks (e.g., TensorFlow Lite, iProov, FaceTec) for robust document and face validation.


Requirements

Requirement
Version

Minimum Android SDK API version (minSdk)

26

Android SDK API version to compile (compileSDK)

34

Kotlin version

1.9.10

Gradle version

8.4

Android Gradle Plugin (AGP) version

8.3.2


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/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 {
    // Declare Bill of Material dependency.
    implementation(platform("io.caf.sdk:caf-sdk-bom:1.2.0"))

    // Select which SDK you can use.
    implementation("io.caf.sdk:document-detector")
    // implementation("io.caf.sdk:caffaceliveness-lite")
}

Usage

Documentation:

Module Architecture

The unified CafSDK is organized into several modular components:

  • CafSDK: The umbrella module for core functionalities.

  • DocumentDetector: Provides secure document detection using TensorFlow Lite.

  • CafFaceLiveness: Manages face liveness validation.

DocumentDetector
CafFaceLiveness
DocumentDetector
CafFaceLiveness
CafSDK for Android
Overview
Features
Requirements
Installation
Gradle Configuration
Java 8 Compatibility
Adding SDK Dependency
Usage
Module Architecture