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):

For the server-based version only

Please note: this is the default version.

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

For both server-based and on-device versions

Please note: the resulting file will be larger.

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

Also, regardless of the mode chosen, add:

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?