File tree Expand file tree Collapse file tree 4 files changed +38
-2
lines changed Expand file tree Collapse file tree 4 files changed +38
-2
lines changed Original file line number Diff line number Diff line change
1
+ # amplify-do-not-edit-begin
2
+ amplify /\# current-cloud-backend
3
+ amplify /.config /local- *
4
+ amplify /logs
5
+ amplify /mock-data
6
+ amplify /mock-api-resources
7
+ amplify /backend /amplify-meta.json
8
+ amplify /backend /.temp
9
+ build /
10
+ dist /
11
+ node_modules /
12
+ aws-exports.js
13
+ awsconfiguration.json
14
+ amplifyconfiguration.json
15
+ amplifyconfiguration.dart
16
+ amplify-build-config.json
17
+ amplify-gradle-config.json
18
+ amplifytools.xcconfig
19
+ .secret- *
20
+ ** .sample
21
+ # amplify-do-not-edit-end
Original file line number Diff line number Diff line change 131
131
9070FFBD285112B5009867D5 /* HostAppUITests */,
132
132
9070FFA1285112B4009867D5 /* Products */,
133
133
90215EED291E9FB60050F2AD /* Frameworks */,
134
+ A5A9AF5054D0FF13505B212A /* AmplifyConfig */,
134
135
);
135
136
sourceTree = "<group>";
136
137
};
213
214
path = Model;
214
215
sourceTree = "<group>";
215
216
};
217
+ A5A9AF5054D0FF13505B212A /* AmplifyConfig */ = {
218
+ isa = PBXGroup;
219
+ children = (
220
+ 973619242BA378690003A590 /* awsconfiguration.json */,
221
+ 973619232BA378690003A590 /* amplifyconfiguration.json */,
222
+ );
223
+ name = AmplifyConfig;
224
+ sourceTree = "<group>";
225
+ };
216
226
/* End PBXGroup section */
217
227
218
228
/* Begin PBXNativeTarget section */
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ struct HostAppApp: App {
27
27
28
28
init ( ) {
29
29
do {
30
+ Amplify . Logging. logLevel = . verbose
30
31
let auth = AWSCognitoAuthPlugin ( )
31
32
let api = AWSAPIPlugin ( )
32
33
try Amplify . add ( plugin: auth)
Original file line number Diff line number Diff line change @@ -48,8 +48,12 @@ struct ExampleLivenessView: View {
48
48
viewModel. presentationState = . error( . invalidSignature)
49
49
case . failure( . cameraNotAvailable) :
50
50
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)
53
57
}
54
58
}
55
59
}
You can’t perform that action at this time.
0 commit comments