Cortixia KYC SDK for Flutter — Algerian eKYC: biometric ID card, passport and driving licence scanning (MRZ + NFC) with face-matching/liveness.
# Cortixia KYC SDK (Flutter)
Algerian eKYC for your Flutter app: scan the **biometric ID card**, **passport**
or **driving licence** (MRZ camera scan → NFC chip read → secure decoding) and
run **face-matching/liveness** — gated by a Cortixia API token.
Get a token: create an account at **
e-kyc.online
(50 free trial scans), then follow the integration guide at
`
e-kyc.online` (shows snippets with your real token).
## Installation
```yaml
dependencies:
cortixia_kyc_sdk:
git:
url:
github.com
ref: v0.4.0
```
## Android requirements
- Set `minSdk = 26` in `android/app/build.gradle.kts` (replace
`flutter.minSdkVersion`), and use a device with NFC
- Permissions in `AndroidManifest.xml`:
```xml
```
That's it — the SDK ships no native code of its own, so there are no extra
Maven repositories or platform registrants to configure.
### Release build (R8 / ProGuard)
The SDK reads the MRZ with ML Kit, which references optional per-language
recognizers (Chinese, Devanagari, Japanese, Korean) it does not bundle. A
release build fails at `minifyReleaseWithR8` until those are suppressed. Add to
`android/app/proguard-rules.pro`:
```proguard
-dontwarn com.google.mlkit.vision.text.chinese.ChineseTextRecognizerOptions$Builder
-dontwarn com.google.mlkit.vision.text.chinese.ChineseTextRecognizerOptions
-dontwarn com.google.mlkit.vision.text.devanagari.DevanagariTextRecognizerOptions$Builder
-dontwarn com.google.mlkit.vision.text.devanagari.DevanagariTextRecognizerOptions
-dontwarn com.google.mlkit.vision.text.japanese.JapaneseTextRecognizerOptions$Builder
-dontwarn com.google.mlkit.vision.text.japanese.JapaneseTextRecognizerOptions
-dontwarn com.google.mlkit.vision.text.korean.KoreanTextRecognizerOptions$Builder
-dontwarn com.google.mlkit.vision.text.korean.KoreanTextRecognizerOptions
```
and reference it in the `release` build type:
```kotlin
isMinifyEnabled = true
isShri …