blusalt_document_verification
Document verification SDK for Android and IOS
Get your Api credentials from Blusalt
Supported Countries
Nigeria
Features
BVN NIN PVC DRIVERS LICENSE PASSPORT SELECTOR (Document Picker)
Usage
dependencies:
blusalt_document_verification: ^lastVersion
Example
String clientId = "";
String appName = "";
String apiKey = "";
bool isDev = true;
void main() {
IdentityVerification().initializeSDK(clientId, appName, apiKey, isDev);
runApp(const MaterialApp(
title: 'Flutter App',
themeMode: ThemeMode.light,
home: MyApp()));
}
Future<BlusaltIdentityResultResponse?> startSDK() async {
response =
await IdentityVerification().startSDK(BlusaltIdentityType.selector);
return response;
}
// A document number is required for this process
Future<BlusaltIdentityResultResponse?> startSDKWithIdNumber() async {
response = await IdentityVerification()
.startSDKWithIdNumber(BlusaltIdentityType.nin, "12122333321");
return response;
}
Installation
Android
Change the minimum Android sdk version to 24 (or higher) in your /android/build.gradle
file.
minSdkVersion 24
Create a github.properties
file in root of android folder and put below into content.
Replace values with your github credentials
USERNAME_GITHUB=SampleUsername
TOKEN_GITHUB=SampleClassicToken
Add below to project level gradle file /android/build.gradle
buildscript {
ext.kotlin_version = '1.9.+'
...
dependencies {
classpath 'com.android.tools.build:gradle:7.3.+'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
iOS
Minimum iOS Deployment = 14
Note:
If you are getting an error on android which says "Unauthorized" when gradle is downloading or building, generate a new github token that have access to clone, read and write to repo, access github packages. If you don't know which to tick, tick all boxes. Cheers