blusalt_document_verification 0.0.2
blusalt_document_verification: ^0.0.2 copied to clipboard
Document Verification SDK for Android and IOS
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"
}
}
allprojects {
def githubPropertiesFile = rootProject.file("github.properties")
def githubProperties = new Properties()
githubProperties.load(new FileInputStream(githubPropertiesFile))
repositories {
maven {
name "GitHubPackages"
url 'https://maven.pkg.github.com/Blusalt-FS/Manual-ID-Only-Verification-Android'
credentials {
username githubProperties['USERNAME_GITHUB']
password githubProperties['TOKEN_GITHUB']
}
}
}
}
iOS #
Minimum iOS Deployment = 14