# BiometridStandardDemo — v3.1.2

Single AAR bundle containing **Core**, **Liveness** and **AutoCapture** modules.

## Modules included

| Module | Description |
|--------|-------------|
| **Core** (`shared`) | Networking, session management, encryption, shared UI components |
| **Liveness** | FaceTec / iProov certified liveness detection and 3D face matching |
| **AutoCapture** | ML-based document auto capture with orientation support (portrait/landscape) |

## Integration

### 1. Add the AAR

Copy `BiometridStandard-release.aar` into your project's `libs/` folder and add:

```groovy
dependencies {
    implementation files('libs/BiometridStandard-release.aar')
}
```

### 2. Add external dependencies

The AAR does **not** embed the following transitive dependencies — add them to your app-level `build.gradle`:

```groovy
dependencies {
    // Ktor
    implementation "io.ktor:ktor-client-android:2.3.7"
    implementation "io.ktor:ktor-client-okhttp:2.3.7"
    implementation "io.ktor:ktor-client-core:2.3.7"
    implementation "io.ktor:ktor-client-content-negotiation:2.3.7"
    implementation "io.ktor:ktor-serialization-kotlinx-json:2.3.7"
    implementation "io.ktor:ktor-client-websockets:2.3.7"

    // Socket.IO
    implementation "io.socket:socket.io-client:2.0.1"
    implementation "dev.icerock.moko:socket-io:0.6.0"

    // AndroidX
    implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2"
    implementation "androidx.security:security-crypto:1.1.0-alpha06"
    implementation "androidx.activity:activity-compose:1.9.3"
    implementation "androidx.compose.ui:ui-android:1.7.8"
    implementation "androidx.appcompat:appcompat:1.7.0"
    implementation "androidx.compose.material3:material3-android:1.3.2"
    implementation "androidx.exifinterface:exifinterface:1.3.7"

    // CameraX (AutoCapture)
    implementation "androidx.camera:camera-core:1.4.2"
    implementation "androidx.camera:camera-camera2:1.4.2"
    implementation "androidx.camera:camera-lifecycle:1.4.2"
    implementation "androidx.camera:camera-view:1.4.2"

    // ML (AutoCapture)
    implementation "org.tensorflow:tensorflow-lite:2.14.0"
    implementation "com.microsoft.onnxruntime:onnxruntime-android:1.23.2"

    // Image loading (AutoCapture)
    implementation "io.coil-kt:coil-compose:2.4.0"
    implementation "io.coil-kt:coil-svg:2.4.0"

    // Kotlin
    implementation "org.jetbrains.kotlinx:kotlinx-datetime:0.6.0"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0"

    // Settings
    implementation "com.russhwolf:multiplatform-settings:1.1.1"
    implementation "com.russhwolf:multiplatform-settings-coroutines:1.1.1"

    // Liveness
    implementation "com.biometrid.face01:biometrid-android-active-liveness:9.7.110"
    implementation "com.iproov.sdk:iproov:11.0.0"

    // Sentry
    implementation "io.sentry:sentry-kotlin-multiplatform:0.12.0"
}
```

### 3. Add repositories

```groovy
repositories {
    google()
    mavenCentral()
    maven { url "https://dl.cloudsmith.io/public/biometrid/mobile-test/maven/" }
    maven { url "https://dl.cloudsmith.io/public/biometrid/face01-liveness/maven/" }
    maven { url "https://raw.githubusercontent.com/iProov/android/master/maven/" }
}
```

## Build

```bash
# Android AAR
./gradlew :demo:assembleRelease
# Output → demo/build/outputs/aar/BiometridStandard-release.aar

# iOS XCFramework
./gradlew :demo:assembleBiometridStandardXCFramework
# Output → demo/build/XCFrameworks/release/BiometridStandard.xcframework
```
