SPB Git

Repository Public

README.md 1.6 KB 35 lines markdown

1# MacLustr Identity — Android SDK23Native Android SDK for MacLustr Identity. Integration guide: [`docs/SDK_ANDROID.md`](../../docs/SDK_ANDROID.md).45| Module | Content |6|---|---|7| `identity-core` | Pure JVM Kotlin: flow API client, models, typed errors, state machine, fr/en strings, capture-guidance logic. |8| `identity-ui` | Android library: `IdentityVerificationContract`, `IdentityVerificationActivity`, `IdentityVerificationScreen` (Compose + CameraX), `IdentityWebFlow` (Custom Tabs). |9| `demo` | Demo app: paste or fetch a hosted URL, run the native or the web flow. |1011## Build and test1213```bash14export JAVA_HOME=$(brew --prefix openjdk@21)15echo "sdk.dir=/opt/homebrew/share/android-commandlinetools" > local.properties   # git-ignored16./gradlew :identity-core:test :identity-ui:assembleDebug :demo:assembleDebug17```1819Integration tests of `identity-core` run against a local backend when these variables are set (they are skipped otherwise):2021```bash22MLID_TEST_BASE_URL=http://localhost:8875 MLID_TEST_API_KEY=mlid_sk_test_… \23MLID_TEST_LIVE_API_KEY=mlid_sk_live_… MLID_TEST_FIXTURES=$PWD/../../tests/fixtures \24./gradlew :identity-core:test25```2627`MLID_TEST_LIVE_API_KEY` and `MLID_TEST_FIXTURES` are optional and only make sense on a development database whose28compliance gates are open; they enable the upload test with the fictional documents of `tests/fixtures`.2930## Demo app3132`./gradlew :demo:installDebug` on a device with USB debugging. With a local backend, run33`adb reverse tcp:8875 tcp:8875` so that `http://localhost:8875/verify/…` URLs work on the device (the demo allows34plain http towards the loopback only).35
Files main
Menu

Theme