From 8b2a6be5e27fc744adf773a0bd5b239272466a4b Mon Sep 17 00:00:00 2001 From: Joey Silberman Date: Wed, 9 Oct 2024 09:50:42 -0700 Subject: [PATCH] Add QR Code "Scan to share" button that dispatches QR payload (#34) * Add QR Code scan to share button that redirects to OID4VP flow * Remove unnecessary comments * Add ScanOID4VPQR view to navController which launches when scan to share button is pressed * Change design of button and make button stay at bottom of screen * Make more slight design changes so button fits Figma example * Rename ScanOID4VPQR to DispatchQRView --------- Co-authored-by: joeyschmoe --- .idea/inspectionProfiles/Project_Default.xml | 27 ++ .idea/other.xml | 318 ------------------ .idea/runConfigurations.xml | 13 + MobileSdk/build.gradle.kts | 4 +- build.gradle.kts | 4 +- .../mobilesdkexample/navigation/Screen.kt | 2 +- .../navigation/SetupNavGraph.kt | 6 +- .../mobilesdkexample/ui/theme/Color.kt | 1 + .../mobilesdkexample/wallet/DispatchQRView.kt | 40 +++ .../mobilesdkexample/wallet/WalletHomeView.kt | 89 +++-- .../res/drawable-hdpi/scan_qr_code_white.png | Bin 0 -> 892 bytes gradle/wrapper/gradle-wrapper.properties | 2 +- 12 files changed, 159 insertions(+), 347 deletions(-) delete mode 100644 .idea/other.xml create mode 100644 .idea/runConfigurations.xml create mode 100644 example/src/main/java/com/spruceid/mobilesdkexample/wallet/DispatchQRView.kt create mode 100644 example/src/main/res/drawable-hdpi/scan_qr_code_white.png diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 44ca2d9..6195b36 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -1,6 +1,30 @@