build.gradle
1. Add this to your project gradle file
```groovy
maven {
    url 'https://gitlab.com/api/v4/projects/52152133/packages/maven'
}
```

2. Add dependency to your app gradle file
```groovy
dependencies {
    implementation 'com.nexstream.NexIDSDK:NexIDSDK:1.4.0'
}
```

3. Example
```java
NexIDSDK.init("your_apiKey", "your_appId");

// 0 - IC Reader, 1 - Passport Reader
NexIDSDK.startDocumentScan(yourMainActivity, 0); 

// supported livenessType - "still" , "meglive" , "flash"
NexIDSDK.startLivenessScan(yourMainActivity, "imageInBase64", "still", new ActionListenerCallback() { 
    @Override
    public void onActionSuccess(Object o) {
        // some actions to be done when success callback ...
    }

    @Override
    public void onActionFailure(Exception e) {
        // some actions to be done when fail callback ...
    }
});
```

1. You may checkout `MainActivity.java` in the `app` folder for more detailed usage