-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send a single image as evidence, rather than the whole video. (#768)
When recording a selfie, if the video was too long, the app would run out of memory when trying to send the video to the issuer. Now this sends a single front-facing image instead. Tested by: - Manual testing, recording selfies as evidence. - ./gradlew connectedCheck - ./gradlew check Signed-off-by: Kevin Deus <[email protected]>
- Loading branch information
Showing
2 changed files
with
52 additions
and
24 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...uance/src/main/java/com/android/identity/issuance/evidence/EvidenceResponseSelfieVideo.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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
package com.android.identity.issuance.evidence | ||
|
||
data class EvidenceResponseSelfieVideo(val video: ByteArray) | ||
data class EvidenceResponseSelfieVideo(val selfieImage: ByteArray) | ||
: EvidenceResponse() { | ||
override fun equals(other: Any?): Boolean { | ||
if (this === other) return true | ||
if (javaClass != other?.javaClass) return false | ||
|
||
other as EvidenceResponseSelfieVideo | ||
|
||
return video.contentEquals(other.video) | ||
return selfieImage.contentEquals(other.selfieImage) | ||
} | ||
|
||
override fun hashCode(): Int { | ||
return video.contentHashCode() | ||
return selfieImage.contentHashCode() | ||
} | ||
} |
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