From 3e756f8f2a6d5277f16001f529c55bd51cbe033c Mon Sep 17 00:00:00 2001 From: Thomas Leing Date: Thu, 14 Sep 2023 12:08:44 -0700 Subject: [PATCH] fix(liveness): Add version to liveness websocket user agent (#73) Co-authored-by: Thomas Leing Co-authored-by: Tyler Roach --- .../amplifyframework/ui/liveness/camera/LivenessCoordinator.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/liveness/src/main/java/com/amplifyframework/ui/liveness/camera/LivenessCoordinator.kt b/liveness/src/main/java/com/amplifyframework/ui/liveness/camera/LivenessCoordinator.kt index 632f71b1..f9e7ecfa 100644 --- a/liveness/src/main/java/com/amplifyframework/ui/liveness/camera/LivenessCoordinator.kt +++ b/liveness/src/main/java/com/amplifyframework/ui/liveness/camera/LivenessCoordinator.kt @@ -40,6 +40,7 @@ import com.amplifyframework.predictions.aws.models.RgbColor import com.amplifyframework.predictions.aws.options.AWSFaceLivenessSessionOptions import com.amplifyframework.predictions.models.FaceLivenessSessionInformation import com.amplifyframework.predictions.models.VideoEvent +import com.amplifyframework.ui.liveness.BuildConfig import com.amplifyframework.ui.liveness.model.FaceLivenessDetectionException import com.amplifyframework.ui.liveness.model.LivenessCheckState import com.amplifyframework.ui.liveness.state.LivenessState @@ -176,6 +177,7 @@ internal class LivenessCoordinator( sessionId, faceLivenessSessionInformation, faceLivenessSessionOptions, + BuildConfig.VERSION_NAME, { livenessState.onLivenessSessionReady(it) }, { disconnectEventReceived = true