Skip to content

Commit 6a82833

Browse files
authored
Merge pull request #1 from SideStore/feature/swiftpm
Swift PM
2 parents 7e0e7ed + 5d86f33 commit 6a82833

256 files changed

Lines changed: 16998 additions & 446 deletions

File tree

Some content is hidden

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

.codecov.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# https://docs.codecov.io/docs/codecov-yaml
2+
3+
codecov:
4+
require_ci_to_pass: true
5+
6+
coverage:
7+
precision: 2
8+
round: down
9+
range: "70...100"
10+
ignore:
11+
- Sources/CCoreCrypto
12+
- Sources/CoreCrypto
13+
- Sources/ldid
14+
- Sources/ldid-core
15+
- Sources/minizip
16+
status:
17+
patch:
18+
default:
19+
if_no_uploads: error
20+
changes: true
21+
project:
22+
default:
23+
target: auto
24+
if_no_uploads: error
25+
comment: false

.editorconfig

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
charset = utf-8
8+
indent_size = 4
9+
end_of_line = lf
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.{md,markdown}]
14+
trim_trailing_whitespace = false
15+
16+
[*.{c,h,m,mm}]
17+
trim_trailing_whitespace = true
18+
indent_style = space
19+
indent_size = 2
20+
21+
[*.js]
22+
indent_size = 2
23+
24+
[*.{swift}]
25+
trim_trailing_whitespace = true
26+
indent_style = tab
27+
indent_size = 4
28+
29+
[Makefile]
30+
trim_trailing_whitespace = true
31+
indent_style = tab
32+
indent_size = 8
33+
34+
[*.{yaml|yml}]
35+
indent_size = 2

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
name: Build
9+
runs-on: macos-latest
10+
steps:
11+
12+
- name: Checkout repository and submodules
13+
uses: actions/checkout@v2
14+
with:
15+
submodules: recursive
16+
17+
- name: Build
18+
run: |
19+
swift build

.github/workflows/rebase.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Rebase PR branch when someone comments /rebase
2+
on:
3+
issue_comment:
4+
types: [created]
5+
name: Automatic Rebase
6+
jobs:
7+
rebase:
8+
name: Rebase
9+
if: contains(github.event.comment.body, '/rebase')
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Automatic Rebase
14+
uses: cirrus-actions/rebase@master
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/swiftlint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Swift Lint
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/swiftlint.yml'
7+
- '.swiftlint.yml'
8+
- '**/*.swift'
9+
10+
jobs:
11+
swift-lint:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: GitHub Action for SwiftLint
17+
uses: norio-nomura/action-swiftlint@3.2.1
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
DIFF_BASE: ${{ github.base_ref }}

.github/workflows/test.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Unit Test
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "**.swift"
7+
- "**.m"
8+
- "**.c"
9+
- "**.cpp"
10+
- "**.h"
11+
- "**.hpp"
12+
- "test.yml"
13+
14+
jobs:
15+
swiftpm:
16+
name: Test iOS (swiftpm)
17+
runs-on: macos-latest
18+
19+
steps:
20+
21+
- name: Checkout repository and submodules
22+
uses: actions/checkout@v2
23+
with:
24+
submodules: recursive
25+
26+
- name: iOS - Swift PM
27+
run: |
28+
set -o pipefail && \
29+
swift test --parallel | \
30+
xcpretty -c --test --color \
31+
--report junit \
32+
--output build/reports/junit.xml \
33+
--report html --output build/reports/html
34+
35+
- name: Upload Test Results
36+
uses: actions/upload-artifact@v2
37+
if: always()
38+
with:
39+
name: Test Results
40+
path: build/reports
41+
42+
- name: Upload Coverage Results
43+
uses: actions/upload-artifact@v2
44+
if: always()
45+
with:
46+
name: Coverage Results
47+
path: build/coverage
48+
49+
- name: Upload Logs
50+
uses: actions/upload-artifact@v2
51+
if: always()
52+
with:
53+
name: Logs
54+
path: build/logs

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ xcuserdata
3333
*.hmap
3434
*.ipa
3535
*.swiftpm
36+
37+
/.build
38+
/.vscode

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "Dependencies/ldid"]
2-
path = Dependencies/ldid
1+
[submodule "Sources/ldid-core"]
2+
path = Sources/ldid-core
33
url = https://github.com/rileytestut/ldid.git

.jazzy.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# ---- About ----
2+
module: AltSign
3+
module_version: 1.0.0
4+
author: SideStore Team
5+
readme: README.md
6+
copyright: 'See [license](https://github.com/SideStore/AltSign/blob/develop/LICENSE) for more details.'
7+
8+
# ---- URLs ----
9+
author_url: https://sidestore.io
10+
dash_url: https://sidestore.io/docsets/AltSign.xml
11+
github_url: https://github.com/SideStore/AltSign/
12+
github_file_prefix: https://github.com/SideStore/AltSign/tree/1.0.0/
13+
14+
# ---- Sources ----
15+
source_directory: Sources
16+
# documentation: .build/x86_64-apple-macosx/debug/AltSign.docc
17+
18+
# ---- Generation ----
19+
clean: true
20+
output: docs
21+
min_acl: public
22+
hide_documentation_coverage: false
23+
skip_undocumented: false
24+
objc: false
25+
swift_version: 5.1.0
26+
27+
# ---- Formatting ----
28+
theme: fullwidth

.swiftformat

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# .swiftformat
2+
3+
## file options
4+
5+
--exclude .build,.github,.swiftpm,.vscode,Configurations,Dependencies
6+
7+
## format options
8+
9+
--allman false
10+
--binarygrouping 4,8
11+
--commas always
12+
--comments indent
13+
--decimalgrouping 3,6
14+
--elseposition same-line
15+
--empty void
16+
--exponentcase lowercase
17+
--exponentgrouping disabled
18+
--fractiongrouping disabled
19+
--header ignore
20+
--hexgrouping 4,8
21+
--hexliteralcase uppercase
22+
--ifdef indent
23+
--importgrouping testable-bottom
24+
--indent 4
25+
--indentcase false
26+
--linebreaks lf
27+
--maxwidth none
28+
--octalgrouping 4,8
29+
--operatorfunc spaced
30+
--patternlet hoist
31+
--ranges spaced
32+
--self remove
33+
--semicolons inline
34+
--stripunusedargs always
35+
--swiftversion 5.1
36+
--trimwhitespace always
37+
--wraparguments preserve
38+
--wrapcollections preserve
39+
40+
## rules
41+
42+
--enable isEmpty,andOperator,assertionFailures

0 commit comments

Comments
 (0)