Skip to content

Commit 7125e2b

Browse files
committed
chore: update amplify dependency to 2.45.4
1 parent d2089c8 commit 7125e2b

File tree

5 files changed

+24
-19
lines changed

5 files changed

+24
-19
lines changed

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

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

HostApp/HostApp/HostAppApp.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ struct HostAppApp: App {
2727

2828
init() {
2929
do {
30+
Amplify.Logging.logLevel = .verbose
3031
let auth = AWSCognitoAuthPlugin()
3132
let api = AWSAPIPlugin()
3233
try Amplify.add(plugin: auth)

HostApp/HostApp/Views/ExampleLivenessView.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,12 @@ struct ExampleLivenessView: View {
4848
viewModel.presentationState = .error(.invalidSignature)
4949
case .failure(.cameraNotAvailable):
5050
viewModel.presentationState = .error(.cameraNotAvailable)
51-
default:
52-
viewModel.presentationState = .liveness
51+
case .failure(.validation):
52+
viewModel.presentationState = .error(.validation)
53+
case .failure(.faceInOvalMatchExceededTimeLimitError):
54+
viewModel.presentationState = .error(.faceInOvalMatchExceededTimeLimitError)
55+
case .failure(_):
56+
viewModel.presentationState = .error(.unknown)
5357
}
5458
}
5559
}

Package.resolved

Lines changed: 8 additions & 8 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
@@ -13,7 +13,7 @@ let package = Package(
1313
targets: ["FaceLiveness"]),
1414
],
1515
dependencies: [
16-
.package(url: "https://github.com/aws-amplify/amplify-swift", exact: "2.42.1")
16+
.package(url: "https://github.com/aws-amplify/amplify-swift", exact: "2.45.4")
1717
],
1818
targets: [
1919
.target(

0 commit comments

Comments
 (0)