# Adding SDK to a Project

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

```groovy
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](https://doc.ozforensics.com/oz-knowledge/guides/developer-guide/sdk/oz-mobile-sdk/android/changelog)):

#### for the server-based version only

Please note: this is the default version.

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

#### for both server-based and on-device versions

Please note: the resulting file will be larger.

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

Also, regardless of the mode chosen, add:

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