Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_liveness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: ./.github/composite_actions/run_xcodebuild
with:
scheme: FaceLiveness
destination: 'platform=iOS Simulator,name=iPhone 15,OS=latest'
destination: 'platform=iOS Simulator,name=iPhone 16 Pro Max,OS=18.5'

confirm-pass:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/liveness_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
test-iOS:
name: Liveness iOS Unit Tests
Expand All @@ -27,5 +30,5 @@ jobs:
with:
scheme: FaceLiveness
token: ${{ secrets.CODECOV_TOKEN }}
destination: 'platform=iOS Simulator,name=iPhone 15,OS=latest'
destination: 'platform=iOS Simulator,name=iPhone 16 Pro Max,OS=18.5'
generate_coverage: true
10 changes: 4 additions & 6 deletions HostApp/HostApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@
A5A9AF5054D0FF13505B212A /* AmplifyConfig */ = {
isa = PBXGroup;
children = (
973619242BA378690003A590 /* awsconfiguration.json */,
973619232BA378690003A590 /* amplifyconfiguration.json */,
);
name = AmplifyConfig;
sourceTree = "<group>";
Expand Down Expand Up @@ -536,7 +534,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"HostApp/Preview Content\"";
DEVELOPMENT_TEAM = W3DRXD72QU;
DEVELOPMENT_TEAM = N75V292K74;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = HostApp/Info.plist;
Expand All @@ -552,7 +550,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.amazonaws.mobile.amplify.liveness.testing.hostapp;
PRODUCT_BUNDLE_IDENTIFIER = com.aws.amplify.liveness.testing.hostapp;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG LANDMARK_DEBUG_MODE";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand All @@ -570,7 +568,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"HostApp/Preview Content\"";
DEVELOPMENT_TEAM = W3DRXD72QU;
DEVELOPMENT_TEAM = N75V292K74;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = HostApp/Info.plist;
Expand All @@ -586,7 +584,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.amazonaws.mobile.amplify.liveness.testing.hostapp;
PRODUCT_BUNDLE_IDENTIFIER = com.aws.amplify.liveness.testing.hostapp;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions HostApp/HostApp/Views/ExampleLivenessView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ struct ExampleLivenessView: View {
LivenessCheckErrorContentView.invalidSignature
case .cameraNotAvailable:
LivenessCheckErrorContentView.cameraNotAvailable
case .validation:
LivenessCheckErrorContentView.validation
default:
LivenessCheckErrorContentView.unexpected
}
Expand Down
5 changes: 5 additions & 0 deletions HostApp/HostApp/Views/LivenessCheckErrorContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ extension LivenessCheckErrorContentView {
name: "The signature on the request is invalid.",
description: "Ensure the device time is correct and try again."
)

static let validation = LivenessCheckErrorContentView(
name: "The input fails to satisfy the constraints specified by the service.",
description: "Please try again."
)

static let cameraNotAvailable = LivenessCheckErrorContentView(
name: "The camera could not be started.",
Expand Down
Loading
Loading