From e7a3cefbbfcdc71082ca6dbd0e4d68fa8f5fe3c6 Mon Sep 17 00:00:00 2001 From: Vansh Gandhi Date: Tue, 16 Jul 2024 13:10:39 -0700 Subject: [PATCH] Add Metadata (#409) * Randomized face direction * Add halfway captures * add stability timer * Add docs, cleanup * Move to util; add constants * Bump versions * Add useStrictMode (#362) * Add useStrictMode * Fix test * Bump versions * Active liveness UI (#363) * Add useStrictMode * wip * New UI prototype, less finicky * add docs * More UI updates * Fix test * Add active liveness forced failure and update design (#364) * Add useStrictMode * wip * New UI prototype, less finicky * add docs * More UI updates * Add metadata * Fix test * Add forced failure * update timeout * remove unused value * add breadcrumbs * increase num liveness images and add doc * prevent rotation * Add CameraFrameCornerBorder * restructure + loading/success/error * cleanup * Update library version * Add smile directive * Use Lottie for directive animations (#366) * Add Lottie face animation * Fix need light animation * Add Enrollment v2 (#367) * Add Enrollment v2 * Fix test * Impose upper bound on active liveness head angle (#368) * Impose upper bound on active liveness head angle * Update condition * Add missing compatibility properties, agent mode, and attribution * Move to constants * Bump lottie * Fix bad version * Metadata * Allow parameter tuning * Active liveness parameter tuning. Update face quality model input crop * Add header metadata back for now * Fix contour out of bounds https://smile-identity.sentry.io/issues/5453193521 * Make feedback more responsive during active liveness * ignore certain faces. debug output * Update CHANGELOG * Fix viewfinder rect * Lint * Merge * Reset capture progress on orientation change (#382) * Reset capture progress on orientation change * Lint * Bump versions * UI update and task confirmation (#385) * Parameter updates, clipboard copy, larger UI * Fail active liveness after timeout (#390) * Use oval cutout * Update parameters * Remove parameter tuning and debug output * Add useStrictMode to top level composable * Use Strict Mode naming on main screen * Update versions * MetadataAdapter comment * Add metadata to prepUpload * Track document image origin (#398) * Track document image origin * Update test * Update test * Update test * Add fingerprint (#400) * Track document image origin * Update test * Add fingerprint * Use default empty string instead of lateinit var * Update test * Track metrics using CompositionLocal (#402) * Track metrics using CompositionLocal * Clear DocumentCapture metadata on retry * Clarify some metadata * Update naming and format * Update names * Send metadata on DocV * Fix enum value * Update CHANGELOG * Merge * Fix colors * Remove fingerprint JS * Update settings.gradle.kts * Prepare for 10.2.1 release --- .idea/codeStyles/Project.xml | 2 - CHANGELOG.md | 3 +- lib/VERSION | 2 +- lib/lib.gradle.kts | 5 + .../compose/selfie/SelfieCaptureScreenTest.kt | 4 +- .../main/java/com/smileidentity/SmileID.kt | 7 + .../com/smileidentity/compose/SmileIDExt.kt | 5 + .../components/MetadataCompositionLocal.kt | 9 ++ .../compose/components/SmileThemeSurface.kt | 12 +- .../bvn/OrchestratedBvnConsentScreen.kt | 3 + .../compose/document/DocumentCaptureScreen.kt | 17 +- .../OrchestratedDocumentVerificationScreen.kt | 3 + .../selfie/OrchestratedSelfieCaptureScreen.kt | 8 + .../compose/selfie/SelfieCaptureScreen.kt | 7 +- .../selfie/v2/SelfieCaptureScreenV2.kt | 7 +- .../com/smileidentity/models/PrepUpload.kt | 2 + .../com/smileidentity/models/v2/Metadata.kt | 148 +++++++++++++++++- .../com/smileidentity/networking/Retrofit.kt | 5 + .../viewmodel/ActiveLivenessTask.kt | 1 - .../viewmodel/SelfieViewModel.kt | 26 ++- .../viewmodel/SmartSelfieV2ViewModel.kt | 28 +++- .../document/DocumentCaptureViewModel.kt | 48 ++++++ .../document/OrchestratedDocumentViewModel.kt | 24 +-- .../java/com/smileidentity/SmileIDTest.kt | 2 +- .../viewmodel/SelfieViewModelTest.kt | 4 +- .../viewmodel/SmartSelfieV2ViewModelTest.kt | 1 + .../document/DocumentCaptureViewModelTest.kt | 1 + .../document/DocumentViewModelTest.kt | 1 + ...hancedDocumentVerificationViewModelTest.kt | 1 + sample/src/main/res/values/colors.xml | 1 + 30 files changed, 350 insertions(+), 37 deletions(-) create mode 100644 lib/src/main/java/com/smileidentity/compose/components/MetadataCompositionLocal.kt diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index a4430c19..c0426ad5 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -7,8 +7,6 @@ -