From 624a1bb88a7bf6e6c214eb62e2b76d3bdf5afc61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juliano=20C=C3=A9zar=20Chagas=20Tavares?= Date: Tue, 22 Oct 2024 16:37:24 -0300 Subject: [PATCH] OID4VP UI (#46) This implements the UI for the OID4VP flow and adds an error page --- .idea/inspectionProfiles/Project_Default.xml | 5 + MobileSdk/build.gradle.kts | 2 +- .../com/spruceid/mobile/sdk/Credential.kt | 10 +- .../com/spruceid/mobile/sdk/CredentialPack.kt | 4 +- .../spruceid/mobilesdkexample/ErrorView.kt | 202 +++++++ .../spruceid/mobilesdkexample/LoadingView.kt | 1 - .../mobilesdkexample/ui/theme/Color.kt | 15 +- .../spruceid/mobilesdkexample/utils/Utils.kt | 2 +- .../wallet/HandleOID4VPView.kt | 532 ++++++++++++++---- .../mobilesdkexample/wallet/OID4VCI.kt | 20 +- example/src/main/res/drawable/collapse.xml | 9 + example/src/main/res/drawable/error.xml | 9 + example/src/main/res/drawable/expand.xml | 9 + example/src/main/res/values/colors.xml | 14 + example/src/main/res/values/strings.xml | 3 + 15 files changed, 722 insertions(+), 115 deletions(-) create mode 100644 example/src/main/java/com/spruceid/mobilesdkexample/ErrorView.kt create mode 100644 example/src/main/res/drawable/collapse.xml create mode 100644 example/src/main/res/drawable/error.xml create mode 100644 example/src/main/res/drawable/expand.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 6195b36..e0da3ee 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -3,15 +3,19 @@