Skip to content

Commit 3e756f8

Browse files
tjleingThomas Leingtylerjroach
authored
fix(liveness): Add version to liveness websocket user agent (#73)
Co-authored-by: Thomas Leing <leint@amazon.com> Co-authored-by: Tyler Roach <tjroach@amazon.com>
1 parent f6e6dcb commit 3e756f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

liveness/src/main/java/com/amplifyframework/ui/liveness/camera/LivenessCoordinator.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import com.amplifyframework.predictions.aws.models.RgbColor
4040
import com.amplifyframework.predictions.aws.options.AWSFaceLivenessSessionOptions
4141
import com.amplifyframework.predictions.models.FaceLivenessSessionInformation
4242
import com.amplifyframework.predictions.models.VideoEvent
43+
import com.amplifyframework.ui.liveness.BuildConfig
4344
import com.amplifyframework.ui.liveness.model.FaceLivenessDetectionException
4445
import com.amplifyframework.ui.liveness.model.LivenessCheckState
4546
import com.amplifyframework.ui.liveness.state.LivenessState
@@ -176,6 +177,7 @@ internal class LivenessCoordinator(
176177
sessionId,
177178
faceLivenessSessionInformation,
178179
faceLivenessSessionOptions,
180+
BuildConfig.VERSION_NAME,
179181
{ livenessState.onLivenessSessionReady(it) },
180182
{
181183
disconnectEventReceived = true

0 commit comments

Comments
 (0)