# Native Android SDK

{% hint style="warning" %}
*The latest Stable Version is V2.1*
{% endhint %}

### Let's Get your Android App running with FACEKI SDK

### Requirements

{% embed url="<https://github.com/faceki/KYC-Android-Native-V2>" %}
Github KYC Android Studio Native files
{% endembed %}

**In order to run the example project, you can change client\_id and client\_secret inside SdkSetting.kt**

#### [Android Studio](https://developer.android.com/studio)&#x20;

Android Studio provides the fastest tools for building apps on every type of Android device.

#### [Kotlin](https://kotlinlang.org/docs/releases.html) Language

Kotlin is a cross-platform, statically typed, general-purpose programming language with type inference. Kotlin is designed to interoperate fully with Java, and the JVM version of Kotlin's standard library depends on the Java Class Library, but type inference allows its syntax to be more concise. [Wikipedia](https://en.wikipedia.org/wiki/Kotlin_\(programming_language\))<br>

### Check [Getting Started](https://kycdocv2.faceki.com/getting-started)&#x20;

### Steps

1. Install the Latest Android Studio and Kotlin Language
2. To use Faceki API, you need to register any of [Faceki packages on the link](https://apps.faceki.com/pricing) and then access  [Dashboard](https://apps.faceki.com/) >> Integration >> [Client-ID](https://apps.faceki.com/integration/client-id)
3. . Click on the hidden eyes and securely copy the **Client ID** (token).

<figure><img src="https://3621714085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQdiwjdAaMBpDtolO59Ll%2Fuploads%2FDWVmYknOY7F92oiri7AH%2FScreenshot%202023-05-24%20150054.png?alt=media&#x26;token=5c51a515-853d-4cc4-8fb1-fe35c1768d99" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Please don't share the token with anybody, highly secure and confidential&#x20;
{% endhint %}

4\. Edit this to your Project's Main build.gradle in repositories block

```
maven { url 'https://jitpack.io' }
```

![](https://3621714085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQdiwjdAaMBpDtolO59Ll%2Fuploads%2FLPglGeIxu0WsALqMjY2Z%2FScreen%20Shot%202022-01-25%20at%202.33.19%20PM.png?alt=media\&token=2357530e-40a1-4935-8666-2cc921c60820)

"OR" put it in Settings.gradle in repositories block as follow:

```
dependencyResolutionManagement 
{
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories 
{
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
```

![](https://3621714085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQdiwjdAaMBpDtolO59Ll%2Fuploads%2F2C115Q6LIJj2o97BR6eh%2Fimage_2022_01_25T09_47_00_172Z.png?alt=media\&token=81e8a0af-e310-416e-9618-594b3af164eb)

5\. Add this to your app level build.gradle android block.

```java
compileOptions {
         sourceCompatibility JavaVersion.VERSION_1_8
         targetCompatibility JavaVersion.VERSION_1_8
     }

     kotlinOptions {
         jvmTarget = '1.8'
     }
```

![](https://3621714085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQdiwjdAaMBpDtolO59Ll%2Fuploads%2FNnOu0oqPq2AP8Jtc5mTu%2Fimage_2022_01_25T11_33_17_963Z.png?alt=media\&token=6befb266-e2c8-4a56-a358-a594e2dda831)

6\. Add this to your app level build.gradle dependencies block

```java
implementation 'com.github.faceki:KYC-Android-Native-V2:$Version'
```

![](https://3621714085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQdiwjdAaMBpDtolO59Ll%2Fuploads%2F3yQ0IMbW5FauRS4AjQco%2FScreen%20Shot%202022-01-25%20at%202.30.44%20PM.png?alt=media\&token=51c3a945-8368-40e6-ad97-dd38997c9783)

{% hint style="info" %}
Add this to your app level build.gradle defaultConfig block&#x20;

{% hint style="info" %}

```java
minSdkVersion 24
```

{% endhint %}
{% endhint %}

7\. Sync your project.

{% hint style="info" %}
Refer to integration to register get the token and paste&#x20;
{% endhint %}

8\. Add the below code in your project file wherever you want to initialize sdk:

```
import com.facekikycverification.startup.FacekiVerification
```

#### Kotlin

```
var facekiVerification: FacekiVerification? = null
facekiVerification = FacekiVerification()
facekiVerification!!.initiateSMSDK(this, "YOUR_CLIENT_ID", "CLIENT-SECERT")
```

![](https://3621714085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQdiwjdAaMBpDtolO59Ll%2Fuploads%2FEnBrmA6olDVYFFJDMOBk%2Fimage_2022_01_25T11_40_32_406Z.png?alt=media\&token=15a0e0d5-09e2-4666-b02f-9c16f57acbda)

#### Java

```
FacekiVerification facekiVerification = null;
facekiVerification = new FacekiVerification();
facekiVerification.initiateSMSDK(this, "YOUR_CLIENT_ID", "CLIENT-SECERT");
```

### Arabic Language&#x20;

To disable the Arabic language, You can simply rename or delete this folder

```
 "/src/main/res/values-ar"
```

### Edit Splash Screen

To change the Splash screen, just replace the image with your splash image here

```
"/src/main/res/drawable/splash.png"
```

### API Response

To intercept with login, signup and KYC and SDK settings API response, you can make required changes in corresponding API calls in&#x20;

```
"/faceki/src/main/java/com/facekikycverification/network/ApiCall.kt" file
```

#### Video Demonstration&#x20;

{% file src="<https://3621714085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQdiwjdAaMBpDtolO59Ll%2Fuploads%2FLjDMORsYS17gNmy41znT%2FFaceki-Android-SDK-V2.mp4?alt=media&token=19a25206-ed95-4cbc-9d1f-e86f430af934>" %}

#### You can also check out FACEKI's <img src="https://3621714085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQdiwjdAaMBpDtolO59Ll%2Fuploads%2F0BS8sBGkechkpiP5umVp%2Fgit%2Bgithub%2Bhosting%2Binternet%2Bused%2Bfor%2Bcode%2Bversion%2Bcontrol%2Bicon-1320194988409492468.png?alt=media&#x26;token=4b8c6739-1828-4fc8-adf2-1daa64e0dc7c" alt="" data-size="line">Github <img src="broken-reference" alt="" data-size="line">
