Skip to content

Commit 1a9d087

Browse files
authored
chore: kickoff release
2 parents efa3e17 + 95fa9dd commit 1a9d087

File tree

10 files changed

+220
-47
lines changed

10 files changed

+220
-47
lines changed

.github/composite_actions/run_xcodebuild_test/action.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ runs:
4747
coverageFlags=""
4848
if [ "${{ inputs.generate_coverage }}" == "true" ]; then
4949
echo "Code Coverage is enabled!"
50-
coverageFlags+="-derivedDataPath Build/ -clonedSourcePackagesDirPath "~/Library/Developer/Xcode/DerivedData/$SCHEME" -enableCodeCoverage YES build test"
50+
coverageFlags+="-derivedDataPath Build/ -clonedSourcePackagesDirPath "~/Library/Developer/Xcode/DerivedData/$SCHEME" -enableCodeCoverage YES"
5151
fi
5252
xcode-select -p
5353
xcodebuild -version
@@ -56,11 +56,19 @@ runs:
5656

5757
- name: Generate Coverage report
5858
if: ${{ inputs.generate_coverage == 'true' }}
59+
env:
60+
SCHEME: ${{ inputs.scheme }}
5961
run: |
6062
echo "Generating Coverage report..."
6163
cd Build/Build/ProfileData
6264
cd $(ls -d */|head -n 1)
6365
pathCoverage=Build/Build/ProfileData/${PWD##*/}/Coverage.profdata
64-
cd ../../../../
65-
xcrun llvm-cov export -format="lcov" -instr-profile $pathCoverage Build/Build/Products/Debug-iphonesimulator/$SCHEME.o > Coverage.lcov
66+
cd ${{ github.workspace }}
67+
xcrun llvm-cov export -format="lcov" -instr-profile $pathCoverage Build/Build/Products/Debug-${{ inputs.sdk }}/${SCHEME}Tests.xctest/${SCHEME}Tests > $SCHEME-Coverage.lcov
6668
shell: bash
69+
70+
- name: Upload Report
71+
if: ${{ inputs.generate_coverage == 'true' }}
72+
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
73+
with:
74+
verbose: true

.github/workflows/build_liveness.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020

2121
jobs:
2222
build-amplify-ui-swift-liveness:
23-
runs-on: macos-13
23+
runs-on: macos-latest
2424
timeout-minutes: 20
2525
steps:
2626
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3
@@ -29,9 +29,8 @@ jobs:
2929
- name: Build Amplify Swift Liveness UI
3030
uses: ./.github/composite_actions/run_xcodebuild
3131
with:
32-
scheme: AmplifyUILiveness
33-
destination: 'platform=iOS Simulator,name=iPhone 14,OS=16.4'
34-
xcode_path: '/Applications/Xcode_14.3.app'
32+
scheme: FaceLiveness
33+
destination: 'platform=iOS Simulator,name=iPhone 14,OS=latest'
3534

3635
confirm-pass:
3736
runs-on: ubuntu-latest

.github/workflows/deploy_liveness.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
token: ${{steps.retrieve-token.outputs.token}}
6868

6969
- name: Setup Ruby
70-
uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0
70+
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 # v1.171.0
7171
with:
7272
ruby-version: '3.2.1'
7373
bundler-cache: true

.github/workflows/liveness_unit_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
jobs:
1616
test-iOS:
1717
name: Liveness iOS Unit Tests
18-
runs-on: macos-13
18+
runs-on: macos-latest
1919
timeout-minutes: 30
2020
steps:
2121
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
@@ -25,6 +25,6 @@ jobs:
2525
continue-on-error: false
2626
uses: ./.github/composite_actions/run_xcodebuild_test
2727
with:
28-
scheme: AmplifyUILiveness
29-
destination: 'platform=iOS Simulator,name=iPhone 14,OS=16.4'
30-
xcode_path: '/Applications/Xcode_14.3.app'
28+
scheme: FaceLiveness
29+
destination: 'platform=iOS Simulator,name=iPhone 14,OS=latest'
30+
generate_coverage: true
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1500"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "FaceLiveness"
18+
BuildableName = "FaceLiveness"
19+
BlueprintName = "FaceLiveness"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "FaceLivenessTests"
32+
BuildableName = "FaceLivenessTests"
33+
BlueprintName = "FaceLivenessTests"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES"
44+
codeCoverageEnabled = "YES">
45+
<Testables>
46+
<TestableReference
47+
skipped = "NO">
48+
<BuildableReference
49+
BuildableIdentifier = "primary"
50+
BlueprintIdentifier = "FaceLivenessTests"
51+
BuildableName = "FaceLivenessTests"
52+
BlueprintName = "FaceLivenessTests"
53+
ReferencedContainer = "container:">
54+
</BuildableReference>
55+
</TestableReference>
56+
</Testables>
57+
</TestAction>
58+
<LaunchAction
59+
buildConfiguration = "Debug"
60+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
61+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
62+
launchStyle = "0"
63+
useCustomWorkingDirectory = "NO"
64+
ignoresPersistentStateOnLaunch = "NO"
65+
debugDocumentVersioning = "YES"
66+
debugServiceExtension = "internal"
67+
allowLocationSimulation = "YES">
68+
</LaunchAction>
69+
<ProfileAction
70+
buildConfiguration = "Release"
71+
shouldUseLaunchSchemeArgsEnv = "YES"
72+
savedToolIdentifier = ""
73+
useCustomWorkingDirectory = "NO"
74+
debugDocumentVersioning = "YES">
75+
<MacroExpansion>
76+
<BuildableReference
77+
BuildableIdentifier = "primary"
78+
BlueprintIdentifier = "FaceLiveness"
79+
BuildableName = "FaceLiveness"
80+
BlueprintName = "FaceLiveness"
81+
ReferencedContainer = "container:">
82+
</BuildableReference>
83+
</MacroExpansion>
84+
</ProfileAction>
85+
<AnalyzeAction
86+
buildConfiguration = "Debug">
87+
</AnalyzeAction>
88+
<ArchiveAction
89+
buildConfiguration = "Release"
90+
revealArchiveInOrganizer = "YES">
91+
</ArchiveAction>
92+
</Scheme>
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1500"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "FaceLiveness"
18+
BuildableName = "FaceLiveness"
19+
BlueprintName = "FaceLiveness"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
codeCoverageEnabled = "YES">
31+
<Testables>
32+
<TestableReference
33+
skipped = "NO">
34+
<BuildableReference
35+
BuildableIdentifier = "primary"
36+
BlueprintIdentifier = "FaceLivenessTests"
37+
BuildableName = "FaceLivenessTests"
38+
BlueprintName = "FaceLivenessTests"
39+
ReferencedContainer = "container:">
40+
</BuildableReference>
41+
</TestableReference>
42+
</Testables>
43+
</TestAction>
44+
<LaunchAction
45+
buildConfiguration = "Debug"
46+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
47+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
48+
launchStyle = "0"
49+
useCustomWorkingDirectory = "NO"
50+
ignoresPersistentStateOnLaunch = "NO"
51+
debugDocumentVersioning = "YES"
52+
debugServiceExtension = "internal"
53+
allowLocationSimulation = "YES">
54+
</LaunchAction>
55+
<ProfileAction
56+
buildConfiguration = "Release"
57+
shouldUseLaunchSchemeArgsEnv = "YES"
58+
savedToolIdentifier = ""
59+
useCustomWorkingDirectory = "NO"
60+
debugDocumentVersioning = "YES">
61+
<MacroExpansion>
62+
<BuildableReference
63+
BuildableIdentifier = "primary"
64+
BlueprintIdentifier = "FaceLiveness"
65+
BuildableName = "FaceLiveness"
66+
BlueprintName = "FaceLiveness"
67+
ReferencedContainer = "container:">
68+
</BuildableReference>
69+
</MacroExpansion>
70+
</ProfileAction>
71+
<AnalyzeAction
72+
buildConfiguration = "Debug">
73+
</AnalyzeAction>
74+
<ArchiveAction
75+
buildConfiguration = "Release"
76+
revealArchiveInOrganizer = "YES">
77+
</ArchiveAction>
78+
</Scheme>

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

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

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.29.3")
16+
.package(url: "https://github.com/aws-amplify/amplify-swift", exact: "2.33.3")
1717
],
1818
targets: [
1919
.target(

codecov.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ignore:
2+
- "**/Views"
3+
- "**/Tests"
4+
- "**/Resources"
5+
- "**/fastlane"
6+
7+
codecov:
8+
branch: main
9+
10+
coverage:
11+
status:
12+
project:
13+
default:
14+
threshold: 1%

0 commit comments

Comments
 (0)