MacLustr Identity — Android SDK
Native Android SDK for MacLustr Identity. Integration guide: docs/SDK_ANDROID.md.
| Module | Content |
|---|---|
identity-core |
Pure JVM Kotlin: flow API client, models, typed errors, state machine, fr/en strings, capture-guidance logic. |
identity-ui |
Android library: IdentityVerificationContract, IdentityVerificationActivity, IdentityVerificationScreen (Compose + CameraX), IdentityWebFlow (Custom Tabs). |
demo |
Demo app: paste or fetch a hosted URL, run the native or the web flow. |
Build and test
bash
export JAVA_HOME=$(brew --prefix openjdk@21)
echo "sdk.dir=/opt/homebrew/share/android-commandlinetools" > local.properties # git-ignored
./gradlew :identity-core:test :identity-ui:assembleDebug :demo:assembleDebugIntegration tests of identity-core run against a local backend when these variables are set (they are skipped otherwise):
bash
MLID_TEST_BASE_URL=http://localhost:8875 MLID_TEST_API_KEY=mlid_sk_test_… \
MLID_TEST_LIVE_API_KEY=mlid_sk_live_… MLID_TEST_FIXTURES=$PWD/../../tests/fixtures \
./gradlew :identity-core:testMLID_TEST_LIVE_API_KEY and MLID_TEST_FIXTURES are optional and only make sense on a development database whose
compliance gates are open; they enable the upload test with the fictional documents of tests/fixtures.
Demo app
./gradlew :demo:installDebug on a device with USB debugging. With a local backend, run
adb reverse tcp:8875 tcp:8875 so that http://localhost:8875/verify/… URLs work on the device (the demo allows
plain http towards the loopback only).