For the complete documentation index, see llms.txt. This page is also available as Markdown.

Adding SDK to a Project

Add the following URL to the build.gradle of the project:

allprojects {
  repositories {
    maven { url "https://ozforensics.jfrog.io/artifactory/main" }
  }
}

Add this to the build.gradle of the module (VERSION is the version you need to implement. Please refer to Changelog):

dependencies {
  implementation 'com.ozforensics.liveness:sdk:VERSION'
}

Also add:

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

From 8.18.0, you can move the SDK into a Google Dynamic Feature module and load it on demand. Since most of the SDK's size comes from its native .so files, moving all SDK interaction into a separate module can noticeably reduce your base app size.

To support this, the SDK exposes an onContextAttachListener callback that fires from attachBaseContext inside the SDK's Activity, so you can call SplitCompat.installActivity() when needed:

Last updated

Was this helpful?