Skip to content

Commit 344799e

Browse files
committed
Initial commit
0 parents  commit 344799e

File tree

178 files changed

+12744
-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.

178 files changed

+12744
-0
lines changed

Diff for: .github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: ra1028

Diff for: .github/ISSUE_TEMPLATE/bug_report.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Bug Report
2+
description: File a bug report
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: checkboxes
7+
attributes:
8+
label: Checklist
9+
options:
10+
- label: This is not a bug caused by platform.
11+
required: true
12+
- label: Reviewed the README and documentation.
13+
required: true
14+
- label: Checked existing issues & PRs to ensure not duplicated.
15+
required: true
16+
17+
- type: textarea
18+
attributes:
19+
label: What happened?
20+
validations:
21+
required: true
22+
23+
- type: textarea
24+
id: expected-behavior
25+
attributes:
26+
label: Expected Behavior
27+
validations:
28+
required: true
29+
30+
- type: textarea
31+
attributes:
32+
label: Reproduction Steps
33+
value: |
34+
1.
35+
2.
36+
3.
37+
validations:
38+
required: true
39+
40+
- type: input
41+
attributes:
42+
label: Swift Version
43+
validations:
44+
required: true
45+
46+
- type: input
47+
attributes:
48+
label: Library Version
49+
validations:
50+
required: true
51+
52+
- type: dropdown
53+
attributes:
54+
label: Platform
55+
multiple: true
56+
options:
57+
- iOS
58+
- tvOS
59+
- macOS
60+
- watchOS
61+
62+
- type: textarea
63+
attributes:
64+
label: Scrrenshot/Video/Gif
65+
placeholder: |
66+
Drag and drop screenshot, video, or gif here if you have.

Diff for: .github/ISSUE_TEMPLATE/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

Diff for: .github/ISSUE_TEMPLATE/documentation_request.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Documentation Request
2+
description: Suggest a new doc/example or ask a question about an existing one
3+
title: "[Doc Request]: "
4+
labels: ["documentation"]
5+
body:
6+
- type: checkboxes
7+
attributes:
8+
label: Checklist
9+
options:
10+
- label: Reviewed the README and documentation.
11+
required: true
12+
- label: Confirmed that this is uncovered by existing docs or examples.
13+
required: true
14+
- label: Checked existing issues & PRs to ensure not duplicated.
15+
required: true
16+
17+
- type: textarea
18+
attributes:
19+
label: Description
20+
placeholder: Describe what the scenario you think is uncovered by the existing ones and why you think it should be covered.
21+
validations:
22+
required: true
23+
24+
- type: textarea
25+
attributes:
26+
label: Motivation & Context
27+
placeholder: Feel free to describe any additional context, such as why you thought the scenario should be covered.

Diff for: .github/ISSUE_TEMPLATE/feature_request.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Feature Request
2+
description: Suggest a new idea of feature
3+
title: "[Feat Request]: "
4+
labels: ["enhancement"]
5+
body:
6+
- type: checkboxes
7+
attributes:
8+
label: Checklist
9+
options:
10+
- label: Reviewed the README and documentation.
11+
required: true
12+
- label: Checked existing issues & PRs to ensure not duplicated.
13+
required: true
14+
15+
- type: textarea
16+
attributes:
17+
label: Description
18+
placeholder: Describe the feature that you want to propose.
19+
validations:
20+
required: true
21+
22+
- type: textarea
23+
attributes:
24+
label: Example Use Case
25+
placeholder: Describe an example use case that the feature is useful.
26+
validations:
27+
required: true
28+
29+
- type: textarea
30+
attributes:
31+
label: Alternative Solution
32+
placeholder: Describe alternatives solutions that you've considered.
33+
34+
- type: textarea
35+
attributes:
36+
label: Proposed Solution
37+
placeholder: Describe how we can achieve the feature you'd like to suggest.
38+
39+
- type: textarea
40+
attributes:
41+
label: Motivation & Context
42+
placeholder: Feel free to describe any additional context, such as why you want to suggest this feature.

Diff for: .github/pull_request_template.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Pull Request Type
2+
3+
- [ ] Bug fix
4+
- [ ] New feature
5+
- [ ] Refactoring
6+
- [ ] Documentation update
7+
- [ ] Chore
8+
9+
## Issue for this PR
10+
11+
Link:
12+
13+
## Description
14+
15+
## Motivation and Context
16+
17+
## Impact on Existing Code
18+
19+
## Screenshot/Video/Gif

Diff for: .github/workflows/docs.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# https://github.com/actions/virtual-environments
2+
3+
name: docs
4+
5+
on:
6+
release:
7+
types: [published]
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
name: Test
13+
runs-on: macos-12
14+
strategy:
15+
matrix:
16+
xcode_version:
17+
- 13.3
18+
env:
19+
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Build docs
23+
run: make docs
24+
- name: Deploy
25+
uses: peaceiris/actions-gh-pages@v3
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: docs

Diff for: .github/workflows/test.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# https://github.com/actions/virtual-environments
2+
3+
name: test
4+
5+
on:
6+
pull_request:
7+
push:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
test:
14+
name: Test
15+
runs-on: macos-12
16+
strategy:
17+
matrix:
18+
xcode_version:
19+
- 13.3
20+
env:
21+
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Show environments
25+
run: |
26+
swift --version
27+
xcodebuild -version
28+
- name: Test library
29+
run: make test-library
30+
- name: Test examples
31+
run: make test-examples
32+
33+
validation:
34+
name: Validation
35+
runs-on: macos-12
36+
env:
37+
DEVELOPER_DIR: /Applications/Xcode_13.3.app
38+
steps:
39+
- uses: actions/checkout@v2
40+
- name: Validate lint
41+
run: make lint
42+
- name: Validate format
43+
run: |
44+
make format
45+
if [ -n "$(git status --porcelain)" ]; then echo "Make sure that the code is formated by 'make format'."; exit 1; fi
46+
- name: Validate example project
47+
run: |
48+
make proj
49+
if [ -n "$(git status --porcelain)" ]; then echo "Make sure that 'Examples/App.xcodeproj' is formated by 'make proj'."; exit 1; fi

Diff for: .gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.DS_Store
2+
*/build/*
3+
*.pbxuser
4+
!default.pbxuser
5+
*.mode1v3
6+
!default.mode1v3
7+
*.mode2v3
8+
!default.mode2v3
9+
*.perspectivev3
10+
!default.perspectivev3
11+
xcuserdata
12+
profile
13+
*.moved-aside
14+
DerivedData
15+
.idea/
16+
*.hmap
17+
*.xccheckout
18+
*.xcuserstate
19+
build/
20+
archive/
21+
*.xcframework
22+
.swiftpm
23+
.build
24+
docs

Diff for: .swift-format

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"version": 1,
3+
"indentation": {
4+
"spaces": 4
5+
},
6+
"fileScopedDeclarationPrivacy": {
7+
"accessLevel": "private"
8+
},
9+
"indentConditionalCompilationBlocks": true,
10+
"indentSwitchCaseLabels": false,
11+
"lineBreakAroundMultilineExpressionChainComponents": false,
12+
"lineBreakBeforeControlFlowKeywords": true,
13+
"lineBreakBeforeEachArgument": true,
14+
"lineBreakBeforeEachGenericRequirement": true,
15+
"lineLength": 150,
16+
"maximumBlankLines": 1,
17+
"prioritizeKeepingFunctionOutputTogether": false,
18+
"respectsExistingLineBreaks": true,
19+
"rules": {
20+
"AllPublicDeclarationsHaveDocumentation": true,
21+
"AlwaysUseLowerCamelCase": true,
22+
"AmbiguousTrailingClosureOverload": true,
23+
"BeginDocumentationCommentWithOneLineSummary": true,
24+
"DoNotUseSemicolons": true,
25+
"DontRepeatTypeInStaticProperties": false,
26+
"FileScopedDeclarationPrivacy": true,
27+
"FullyIndirectEnum": true,
28+
"GroupNumericLiterals": true,
29+
"IdentifiersMustBeASCII": true,
30+
"NeverForceUnwrap": false,
31+
"NeverUseForceTry": true,
32+
"NeverUseImplicitlyUnwrappedOptionals": false,
33+
"NoAccessLevelOnExtensionDeclaration": false,
34+
"NoBlockComments": true,
35+
"NoCasesWithOnlyFallthrough": true,
36+
"NoEmptyTrailingClosureParentheses": true,
37+
"NoLabelsInCasePatterns": true,
38+
"NoLeadingUnderscores": false,
39+
"NoParensAroundConditions": true,
40+
"NoVoidReturnOnFunctionSignature": true,
41+
"OneCasePerLine": true,
42+
"OneVariableDeclarationPerLine": true,
43+
"OnlyOneTrailingClosureArgument": false,
44+
"OrderedImports": true,
45+
"ReturnVoidInsteadOfEmptyTuple": true,
46+
"UseEarlyExits": false,
47+
"UseLetInEveryBoundCaseVariable": true,
48+
"UseShorthandTypeNames": true,
49+
"UseSingleLinePropertyGetter": true,
50+
"UseSynthesizedInitializer": true,
51+
"UseTripleSlashForDocumentationComments": true,
52+
"UseWhereClausesInForLoops": false,
53+
"ValidateDocumentationComments": true
54+
}
55+
}

0 commit comments

Comments
 (0)