Skip to content

Commit 467f114

Browse files
author
Victor
committed
look and feel changes
0 parents  commit 467f114

File tree

184 files changed

+16480
-0
lines changed

Some content is hidden

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

184 files changed

+16480
-0
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# The amplify-ui team is marked as required reviewers for all pull requests to main.
2+
# See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
3+
* @aws-amplify/amplify-ios @aws-amplify/amplify-ui
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
name: Bug Report
2+
description: Create a report to help us improve
3+
body:
4+
- type: textarea
5+
id: description
6+
attributes:
7+
label: Describe the bug
8+
description: A clear and concise description of what the bug is.
9+
validations:
10+
required: true
11+
- type: textarea
12+
id: repro
13+
attributes:
14+
label: Steps To Reproduce
15+
description: How do you trigger this bug? Please walk us through it step by step.
16+
value: |
17+
Steps to reproduce the behavior:
18+
1. Go to '...'
19+
2. Click on '....'
20+
3. Scroll down to '....'
21+
4. See error
22+
render: swift
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: behavior
27+
attributes:
28+
label: Expected behavior
29+
description: A clear and concise description of what you expected to happen.
30+
validations:
31+
required: true
32+
- type: input
33+
id: liveness-version
34+
attributes:
35+
label: Swift Liveness Version
36+
placeholder: e.g. 1.2.4
37+
validations:
38+
required: true
39+
- type: input
40+
id: xcode
41+
attributes:
42+
label: Xcode version
43+
placeholder: e.g. 14.3.1 (14E300c) -- run `xcodebuild -version`
44+
validations:
45+
required: true
46+
- type: textarea
47+
id: logs
48+
attributes:
49+
label: Relevant log output
50+
description: >-
51+
Include any relevant log
52+
value: |
53+
<details>
54+
<summary>Log Messages</summary>
55+
56+
```
57+
INSERT LOG MESSAGES HERE
58+
```
59+
</details>
60+
render: shell
61+
- type: dropdown
62+
id: regression
63+
attributes:
64+
label: Is this a regression?
65+
multiple: false
66+
options:
67+
- "Yes"
68+
- "No"
69+
validations:
70+
required: true
71+
- type: textarea
72+
id: regression-info
73+
attributes:
74+
label: Regression additional context
75+
placeholder: If it was a regression provide the versions used before and after the upgrade.
76+
- type: input
77+
id: os-version
78+
attributes:
79+
label: OS Version
80+
placeholder: e.g. iOS 15.3 / macOS 11.0
81+
validations:
82+
required: true
83+
- type: input
84+
id: device
85+
attributes:
86+
label: Device
87+
placeholder: e.g. iPhone6
88+
validations:
89+
required: true
90+
- type: input
91+
id: simulators
92+
attributes:
93+
label: Specific to simulators
94+
- type: textarea
95+
id: context
96+
attributes:
97+
label: Additional context
98+
description: Add any other context about the problem here.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Feature request
2+
description: Suggest an idea for this project
3+
body:
4+
- type: textarea
5+
id: description
6+
attributes:
7+
label: Is your feature request related to a problem? Please describe.
8+
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
validations:
10+
required: true
11+
12+
- type: textarea
13+
id: proposal
14+
attributes:
15+
label: Describe the solution you'd like
16+
description: A clear and concise description of what you want to happen.
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
id: alternatives
22+
attributes:
23+
label: Describe alternatives you've considered
24+
description: A clear and concise description of any alternative solutions or features you've considered.
25+
validations:
26+
required: true
27+
28+
- type: textarea
29+
id: context
30+
attributes:
31+
label: Additional context
32+
description: Add any other context about the problem here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
*Issue #, if available:*
2+
3+
*Description of changes:*
4+
5+
*Check points: (check or cross out if not relevant)*
6+
7+
- [ ] Added new tests to cover change, if needed
8+
- [ ] Build succeeds with all target using Swift Package Manager
9+
- [ ] All unit tests pass
10+
- [ ] Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)
11+
- [ ] Documentation update for the change if required
12+
- [ ] PR title conforms to conventional commit style
13+
- [ ] If breaking change, documentation/changelog update with migration instructions
14+
15+
16+
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: 'Run xcodebuild'
2+
description: 'Action runs `xcodebuild build` for the scheme specified'
3+
4+
inputs:
5+
scheme:
6+
required: true
7+
type: string
8+
project_path:
9+
required: false
10+
type: string
11+
xcode_path:
12+
required: false
13+
type: string
14+
destination:
15+
required: false
16+
type: string
17+
default: 'platform=iOS Simulator,name=iPhone 13,OS=latest'
18+
sdk:
19+
required: false
20+
type: string
21+
default: 'iphonesimulator'
22+
other_flags:
23+
required: false
24+
type: string
25+
default: ''
26+
27+
runs:
28+
using: "composite"
29+
steps:
30+
- name: Build ${{ inputs.scheme }}
31+
env:
32+
SCHEME: ${{ inputs.scheme }}
33+
PROJECT_PATH: ${{ inputs.project_path }}
34+
XCODE_PATH: ${{ inputs.xcode_path }}
35+
run: |
36+
if [ ! -z "$PROJECT_PATH" ]; then
37+
cd $PROJECT_PATH
38+
fi
39+
if [ ! -z "$XCODE_PATH" ]; then
40+
sudo xcode-select -s $XCODE_PATH
41+
fi
42+
xcodebuild -version
43+
xcodebuild build -scheme $SCHEME -sdk '${{ inputs.sdk }}' -destination '${{ inputs.destination }}' ${{ inputs.other_flags }} | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
44+
shell: bash
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: 'Run xcodebuild test'
2+
description: 'Action runs the test for the scheme specified'
3+
4+
inputs:
5+
scheme:
6+
required: true
7+
type: string
8+
token:
9+
required: true
10+
project_path:
11+
required: false
12+
type: string
13+
xcode_path:
14+
required: false
15+
type: string
16+
destination:
17+
required: false
18+
type: string
19+
default: 'platform=iOS Simulator,name=iPhone 13,OS=latest'
20+
sdk:
21+
required: false
22+
type: string
23+
default: 'iphonesimulator'
24+
other_flags:
25+
required: false
26+
type: string
27+
default: ''
28+
generate_coverage:
29+
required: false
30+
type: boolean
31+
default: false
32+
33+
runs:
34+
using: "composite"
35+
steps:
36+
- name: Test ${{ inputs.scheme }}
37+
env:
38+
SCHEME: ${{ inputs.scheme }}
39+
PROJECT_PATH: ${{ inputs.project_path }}
40+
XCODE_PATH: ${{ inputs.xcode_path }}
41+
run: |
42+
if [ ! -z "$PROJECT_PATH" ]; then
43+
cd $PROJECT_PATH
44+
fi
45+
if [ ! -z "$XCODE_PATH" ]; then
46+
echo "Using Xcode $XCODE_PATH"
47+
sudo xcode-select -s $XCODE_PATH
48+
fi
49+
coverageFlags=""
50+
if [ "${{ inputs.generate_coverage }}" == "true" ]; then
51+
echo "Code Coverage is enabled!"
52+
coverageFlags+="-derivedDataPath Build/ -clonedSourcePackagesDirPath "~/Library/Developer/Xcode/DerivedData/$SCHEME" -enableCodeCoverage YES"
53+
fi
54+
xcode-select -p
55+
xcodebuild -version
56+
xcodebuild test -scheme $SCHEME -sdk '${{ inputs.sdk }}' -destination '${{ inputs.destination }}' ${{ inputs.other_flags }} $coverageFlags | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
57+
shell: bash
58+
59+
- name: Generate Coverage report
60+
if: ${{ inputs.generate_coverage == 'true' }}
61+
env:
62+
SCHEME: ${{ inputs.scheme }}
63+
run: |
64+
echo "Generating Coverage report..."
65+
cd Build/Build/ProfileData
66+
cd $(ls -d */|head -n 1)
67+
pathCoverage=Build/Build/ProfileData/${PWD##*/}/Coverage.profdata
68+
cd ${{ github.workspace }}
69+
xcrun llvm-cov export -format="lcov" -instr-profile $pathCoverage Build/Build/Products/Debug-${{ inputs.sdk }}/${SCHEME}Tests.xctest/${SCHEME}Tests > $SCHEME-Coverage.lcov
70+
shell: bash
71+
72+
- name: Upload Report
73+
if: ${{ inputs.generate_coverage == 'true' }}
74+
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
75+
with:
76+
token: ${{ inputs.token }}

.github/workflows/build_liveness.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build | Amplify UI Swift Liveness
2+
on:
3+
workflow_call:
4+
inputs:
5+
identifier:
6+
required: true
7+
type: string
8+
workflow_dispatch:
9+
push:
10+
branches-ignore:
11+
- main
12+
- release
13+
14+
permissions:
15+
contents: read
16+
17+
concurrency:
18+
group: ${{ inputs.identifier || github.workflow }}-${{ github.event.pull_request.number || github.ref }}
19+
cancel-in-progress: ${{ github.ref_name != 'main'}}
20+
21+
jobs:
22+
build-amplify-ui-swift-liveness:
23+
runs-on: macos-latest
24+
timeout-minutes: 20
25+
steps:
26+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3
27+
with:
28+
persist-credentials: false
29+
- name: Build Amplify Swift Liveness UI
30+
uses: ./.github/composite_actions/run_xcodebuild
31+
with:
32+
scheme: FaceLiveness
33+
destination: 'platform=iOS Simulator,name=iPhone 15,OS=latest'
34+
35+
confirm-pass:
36+
runs-on: ubuntu-latest
37+
name: Confirm Passing Build Steps
38+
if: ${{ !cancelled() }}
39+
needs: [ build-amplify-ui-swift-liveness ]
40+
env:
41+
EXIT_CODE: ${{ contains(needs.*.result, 'failure') && 1 || 0 }}
42+
steps:
43+
- run: exit $EXIT_CODE
44+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Dependency Review
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
dependency-review:
13+
name: Dependency Review
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
18+
with:
19+
persist-credentials: false
20+
21+
- name: Dependency Review
22+
uses: actions/dependency-review-action@7d90b4f05fea31dde1c4a1fb3fa787e197ea93ab # v3.0.7
23+
with:
24+
config-file: aws-amplify/amplify-ci-support/.github/dependency-review-config.yml@main

0 commit comments

Comments
 (0)