# Installation Guide

### Minimum Requirements

* Jetpack Library: AndroidX
* Java Version: 11
* API Level: 21 or higher (Android 5.0)
* Compile SDK: 32 or higher
* Camera access is mandatory (**NOTE :** The SDK handles permission requests, so you don't need to implement them in your app).

### Installation

{% hint style="info" %}
You **don't** have to do this step if you did it before while integrating another valify SDK in the same project.
{% endhint %}

Open the file `Gradle Scripts | settings.gradle (Project Settings)` and add the following in **dependencyResolutionManagement** section in **repositories** :

{% hint style="info" %}
Note : The credentials here are **NOT** placeholders (Leave them as they are) .
{% endhint %}

```groovy
dependencyResolutionManagement {
    repositories {
         maven {
              credentials {
                   username “sdk”
                   password “sdk123456”
                     }
                url “https://www.valifystage.com/artifactory/libs-release/”
               }

          maven { url "https://jitpack.io" }
          maven { url 'https://developer.huawei.com/repo/' }
          
     }
}
```

### SDK Dependancy

Open the file `Gradle Scripts | build.gradle (Module: app)` and add the following to the `dependencies` section:

```groovy
implementation 'com.vidv:VIDVOCRSDK: $LATEST_VERSION’
```

{% hint style="info" %}
Note: Latest Version: 3.6.0<br>
{% endhint %}

Add the following line in your Application Manifest **(AndroidManifest.xml)** inside **application** tag:

```xml
    <application
        ...
        ...
        ...
        tools:replace="android:allowBackup"
        ...
        ...
        ...
```

Add this line to support the 16 KB memory page size requirement inside **build.gradle**

android{

packagingOptions {&#x20;

&#x20;   jniLibs { excludes.add("lib/\*\*/libimage\_processing\_util\_jni.so") }&#x20;

&#x20;  }

&#x20;}
