Skip to content

Commit 9b0f9de

Browse files
authored
Merge pull request #1 from aws-amplify/main
Sync SDK
2 parents d2089c8 + bc1fcdb commit 9b0f9de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+696
-219
lines changed

.github/composite_actions/run_xcodebuild/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ runs:
4040
sudo xcode-select -s $XCODE_PATH
4141
fi
4242
xcodebuild -version
43-
xcodebuild build -scheme $SCHEME -sdk '${{ inputs.sdk }}' -destination '${{ inputs.destination }}' ${{ inputs.other_flags }} | xcpretty --simple --color --report junit && exit ${PIPESTATUS[0]}
43+
xcodebuild build -scheme $SCHEME -sdk '${{ inputs.sdk }}' -destination '${{ inputs.destination }}' ${{ inputs.other_flags }} | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
4444
shell: bash

.github/composite_actions/run_xcodebuild_test/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ runs:
5353
fi
5454
xcode-select -p
5555
xcodebuild -version
56-
xcodebuild test -scheme $SCHEME -sdk '${{ inputs.sdk }}' -destination '${{ inputs.destination }}' ${{ inputs.other_flags }} $coverageFlags | xcpretty --simple --color --report junit && exit ${PIPESTATUS[0]}
56+
xcodebuild test -scheme $SCHEME -sdk '${{ inputs.sdk }}' -destination '${{ inputs.destination }}' ${{ inputs.other_flags }} $coverageFlags | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
5757
shell: bash
5858

5959
- name: Generate Coverage report

.github/workflows/build_liveness.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: ./.github/composite_actions/run_xcodebuild
3131
with:
3232
scheme: FaceLiveness
33-
destination: 'platform=iOS Simulator,name=iPhone 14,OS=latest'
33+
destination: 'platform=iOS Simulator,name=iPhone 15,OS=latest'
3434

3535
confirm-pass:
3636
runs-on: ubuntu-latest

.github/workflows/liveness_unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ jobs:
2727
with:
2828
scheme: FaceLiveness
2929
token: ${{ secrets.CODECOV_TOKEN }}
30-
destination: 'platform=iOS Simulator,name=iPhone 14,OS=latest'
30+
destination: 'platform=iOS Simulator,name=iPhone 15,OS=latest'
3131
generate_coverage: true

.github/workflows/release_kickoff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
jobs:
1111
release:
1212
name: Release
13-
runs-on: macos-12
13+
runs-on: macos-latest
1414

1515
steps:
1616
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 1.4.0 (2025-06-30)
4+
5+
### Features
6+
7+
- add no-light/facemovementonly challenge and back camera support (#131)
8+
9+
## 1.3.5 (2025-03-18)
10+
11+
## 1.3.4 (2025-01-13)
12+
313
## 1.3.3 (2024-09-24)
414

515
## 1.3.2 (2024-08-20)

HostApp/HostApp.xcodeproj/project.pbxproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
9070FFBD285112B5009867D5 /* HostAppUITests */,
132132
9070FFA1285112B4009867D5 /* Products */,
133133
90215EED291E9FB60050F2AD /* Frameworks */,
134+
A5A9AF5054D0FF13505B212A /* AmplifyConfig */,
134135
);
135136
sourceTree = "<group>";
136137
};
@@ -213,6 +214,15 @@
213214
path = Model;
214215
sourceTree = "<group>";
215216
};
217+
A5A9AF5054D0FF13505B212A /* AmplifyConfig */ = {
218+
isa = PBXGroup;
219+
children = (
220+
973619242BA378690003A590 /* awsconfiguration.json */,
221+
973619232BA378690003A590 /* amplifyconfiguration.json */,
222+
);
223+
name = AmplifyConfig;
224+
sourceTree = "<group>";
225+
};
216226
/* End PBXGroup section */
217227

218228
/* Begin PBXNativeTarget section */

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

Lines changed: 11 additions & 11 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/Model/LivenessResult.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
//
77

88
import Foundation
9+
@_spi(PredictionsFaceLiveness) import AWSPredictionsPlugin
910

1011
struct LivenessResult: Codable {
1112
let auditImageBytes: String?
1213
let confidenceScore: Double
1314
let isLive: Bool
15+
let challenge: Event?
1416
}
1517

1618
extension LivenessResult: CustomDebugStringConvertible {
@@ -20,6 +22,17 @@ extension LivenessResult: CustomDebugStringConvertible {
2022
- confidenceScore: \(confidenceScore)
2123
- isLive: \(isLive)
2224
- auditImageBytes: \(auditImageBytes == nil ? "nil" : "<placeholder>")
25+
- challenge: type: \(String(describing: challenge?.type)) + " version: " + \(String(describing: challenge?.version))
2326
"""
2427
}
2528
}
29+
30+
struct Event: Codable {
31+
let version: String
32+
let type: ChallengeType
33+
34+
enum CodingKeys: String, CodingKey {
35+
case version = "Version"
36+
case type = "Type"
37+
}
38+
}

0 commit comments

Comments
 (0)