Skip to content

Commit 1a115df

Browse files
committed
update test branch dependency and add code for choosing challenge type
1 parent b22ef51 commit 1a115df

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

HostApp/HostApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let package = Package(
1414
],
1515
dependencies: [
1616
// TODO: Change this before merge to main
17-
.package(url: "https://github.com/aws-amplify/amplify-swift", branch: "feat/no-light-support")
17+
.package(url: "https://github.com/aws-amplify/amplify-swift", branch: "test/no-light-support")
1818
],
1919
targets: [
2020
.target(

Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionViewModel.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ class FaceLivenessDetectionViewModel: ObservableObject {
204204
withSessionID: sessionID,
205205
userAgent: UserAgentValues.standard().userAgentString,
206206
challenges: FaceLivenessSession.supportedChallenges,
207+
208+
// light challenge
209+
// challenges: [.init(version: "2.0.0", type: .faceMovementAndLightChallenge)],
210+
211+
// no light challenge
212+
// challenges: [.init(version: "1.0.0", type: .faceMovementChallenge)],
213+
207214
options: .init(
208215
attemptCount: Self.attemptCount,
209216
preCheckViewEnabled: isPreviewScreenEnabled)

0 commit comments

Comments
 (0)