Skip to content

Commit 680bb19

Browse files
authored
chore: update face fit instruction text and error message (#49)
* chore: clean up face fit instruction text * chore: update face fit instruction text and error message * chore: update face fit instruction text and error message
1 parent aab92ed commit 680bb19

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

Diff for: HostApp/HostApp/Views/LivenessCheckErrorContentView.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct LivenessCheckErrorContentView: View {
2828
extension LivenessCheckErrorContentView {
2929
static let mock = LivenessCheckErrorContentView(
3030
name: "Time out",
31-
description: "Face didn't fit inside oval in time limit. Try again and completely fill the oval with face within 7 seconds."
31+
description: "Face didn't fit inside oval in time limit. Try again and completely fill the oval with face in it."
3232
)
3333

3434
static let unexpected = LivenessCheckErrorContentView(
@@ -38,7 +38,7 @@ extension LivenessCheckErrorContentView {
3838

3939
static let faceMatchTimeOut = LivenessCheckErrorContentView(
4040
name: "Time out",
41-
description: "Face did not fill oval in time limit. Try again and completely fill the oval with face within 7 seconds."
41+
description: "Face did not fill oval in time limit. Try again and completely fill the oval with face in it."
4242
)
4343

4444
static let sessionTimeOut = LivenessCheckErrorContentView(

Diff for: Sources/FaceLiveness/Resources/Base.lproj/Localizable.strings

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"amplify_ui_liveness_get_ready_steps_title" = "Follow the instructions to complete the check:";
1616
"amplify_ui_liveness_get_ready_face_not_covered" = "Make sure your face is not covered with sunglasses or a mask.";
1717
"amplify_ui_liveness_get_ready_lighting" = "Move to a well-lit place that is not in direct sunlight.";
18-
"amplify_ui_liveness_get_ready_fit_face" = "When an oval appears, fill the oval with your face within 7 seconds.";
18+
"amplify_ui_liveness_get_ready_fit_face" = "When an oval appears, fill the oval with your face in it.";
1919
"amplify_ui_liveness_get_ready_begin_check" = "Begin Check";
2020
"amplify_ui_liveness_get_ready_good_fit_example" = "Good fit";
2121
"amplify_ui_liveness_get_ready_too_far_example" = "Too far";

Diff for: Sources/FaceLiveness/Utilities/LocalizedStringKey+Liveness.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ extension LocalizedStringKey {
5858
"amplify_ui_liveness_get_ready_lighting"
5959
)
6060

61-
/// en = "When an oval appears, fill the oval with your face within 7 seconds."
61+
/// en = "When an oval appears, fill the oval with your face in it."
6262
static let get_ready_fit_face = LocalizedStringKey(
6363
"amplify_ui_liveness_get_ready_fit_face"
6464
)

Diff for: Tests/FaceLivenessTests/LivenessTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ final class FaceLivenessDetectionViewModelTestCase: XCTestCase {
140140
}
141141

142142
/// Given: A `FaceLivenessDetectionViewModel`
143-
/// When: The viewModel handles a no fit event over a duration of 7 seconds
143+
/// When: The viewModel handles a no fit event over a client default time limit of 7 seconds
144144
/// Then: The end state is `.encounteredUnrecoverableError(.timedOut)`
145145
func testNoFitTimeoutCheck() async throws {
146146
viewModel.livenessService = self.livenessService

Diff for: Tests/IntegrationTestApp/IntegrationTestApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@
55
"kind" : "remoteSourceControl",
66
"location" : "https://github.com/aws-amplify/amplify-swift",
77
"state" : {
8-
"revision" : "a01dfe5c0e5b38be13339a2005ce22874f5d4749",
9-
"version" : "2.11.6"
8+
"revision" : "90e7163cb7d1320ade541ec9b0029781d71a8a95",
9+
"version" : "2.15.4"
1010
}
1111
},
1212
{
1313
"identity" : "amplify-swift-utils-notifications",
1414
"kind" : "remoteSourceControl",
1515
"location" : "https://github.com/aws-amplify/amplify-swift-utils-notifications.git",
1616
"state" : {
17-
"revision" : "d4fd3c17e8d40efc821f448d3d6cff75b8f3b0dd",
18-
"version" : "1.0.0"
17+
"revision" : "f970384ad1035732f99259255cd2f97564807e41",
18+
"version" : "1.1.0"
1919
}
2020
},
2121
{
2222
"identity" : "aws-appsync-realtime-client-ios",
2323
"kind" : "remoteSourceControl",
2424
"location" : "https://github.com/aws-amplify/aws-appsync-realtime-client-ios.git",
2525
"state" : {
26-
"revision" : "b036e83716789c13a3480eeb292b70caa54114f2",
27-
"version" : "3.1.0"
26+
"revision" : "c7ec93dcbbcd8abc90c74203937f207a7fcaa611",
27+
"version" : "3.1.1"
2828
}
2929
},
3030
{
@@ -86,8 +86,8 @@
8686
"kind" : "remoteSourceControl",
8787
"location" : "https://github.com/apple/swift-log.git",
8888
"state" : {
89-
"revision" : "32e8d724467f8fe623624570367e3d50c5638e46",
90-
"version" : "1.5.2"
89+
"revision" : "532d8b529501fb73a2455b179e0bbb6d49b652ed",
90+
"version" : "1.5.3"
9191
}
9292
},
9393
{

Diff for: Tests/IntegrationTestApp/IntegrationTestApp/Views/LivenessCheckErrorContentView.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct LivenessCheckErrorContentView: View {
2828
extension LivenessCheckErrorContentView {
2929
static let mock = LivenessCheckErrorContentView(
3030
name: "Time out",
31-
description: "Face didn't fit inside oval in time limit. Try again and completely fill the oval with face within 7 seconds."
31+
description: "Face didn't fit inside oval in time limit. Try again and completely fill the oval with face in it."
3232
)
3333

3434
static let unexpected = LivenessCheckErrorContentView(
@@ -38,7 +38,7 @@ extension LivenessCheckErrorContentView {
3838

3939
static let faceMatchTimeOut = LivenessCheckErrorContentView(
4040
name: "Time out",
41-
description: "Face did not fill oval in time limit. Try again and completely fill the oval with face within 7 seconds."
41+
description: "Face did not fill oval in time limit. Try again and completely fill the oval with face in it."
4242
)
4343

4444
static let sessionTimeOut = LivenessCheckErrorContentView(

0 commit comments

Comments
 (0)