-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Made contactless animation more prominent in Dark theme by setting it to the inverse colors of Light theme (except the error case). - Hard-code text in defaultGraph instead of referencing String resources of downstream client from upstream. - Add EvidenceRequestDetailedMessage to handle showing custom UI for specific message types, such as after completing the the Provision PID flow. - Show the transitional success screen after successful NFC scanning only when Developer Mode is enabled. - Updated NFC status text to be even more user friendly. Signed-off-by: dritan-x <[email protected]>
- Loading branch information
Showing
9 changed files
with
230 additions
and
122 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...ce/src/main/java/com/android/identity/issuance/evidence/EvidenceRequestDetailedMessage.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.android.identity.issuance.evidence | ||
|
||
import kotlinx.io.bytestring.ByteString | ||
|
||
/** | ||
* Detailed rich-text message building on top of [EvidenceRequestMessage] that additionally contains | ||
* a [messageTitle] and a [messageType] that is used to identify the classification of the detailed | ||
* message (such as "completed", "info", "confirmation_XYZ") that allows showing tailored UI | ||
* pertaining to the message. | ||
* | ||
* [messageType] identifier used for classifying message types (success, error, info, ..) to show | ||
* the appropriate UI pertaining to the detailed message. | ||
* [messageTitle] title to show above the message | ||
* [message] message formatted as markdown | ||
* [assets] images that can be referenced in markdown, type (PNG, JPEG, or SVG) determined by the extension | ||
* [acceptButtonText] button label to continue to the next screen | ||
* [rejectButtonText] optional button label to continue without accepting | ||
*/ | ||
data class EvidenceRequestDetailedMessage( | ||
val messageType: String, | ||
val messageTitle: String, | ||
val message: String, | ||
val assets: Map<String, ByteString>, | ||
val acceptButtonText: String, | ||
val rejectButtonText: String?, | ||
) : EvidenceRequest() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.