Skip to content

Commit 7ea34a0

Browse files
authored
Merge pull request #1 from SideStore/feature/swiftall
Convert to full swift
2 parents 0143ec2 + bf65f98 commit 7ea34a0

33 files changed

+1226
-1040
lines changed

.github/CODEOWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# CODEOWNERS
2+
# Lines starting with '#' are comments.
3+
# Each line is a file pattern followed by one or more owners.
4+
# https://help.github.com/en/articles/about-code-owners
5+
6+
# These owners will be the default owners for everything in the repo.
7+
* @JoeMatt

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: [JoeMatt] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: provenanceemu # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/auto_assign.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Set to true to add reviewers to pull requests
2+
addReviewers: true
3+
4+
# Set to true to add assignees to pull requests
5+
addAssignees: false
6+
7+
# A list of reviewers to be added to pull requests (GitHub user name)
8+
reviewers:
9+
- JoeMatt
10+
11+
# A number of reviewers added to the pull request
12+
# Set 0 to add all the reviewers (default: 0)
13+
numberOfReviewers: 0
14+
15+
# A list of assignees, overrides reviewers if set
16+
# assignees:
17+
18+
# A number of assignees to add to the pull request
19+
# Set to 0 to add all of the assignees.
20+
# Uses numberOfReviewers if unset.
21+
numberOfAssignees: 1
22+
23+
# A list of keywords to be skipped the process that add reviewers if pull requests include it
24+
skipKeywords:
25+
- wip
26+
- WIP

.github/issue_template.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!--
2+
ℹ We use Github issues for bug reports, feature requests, general support, and questions about the library.
3+
4+
Please fill out this template when filing an issue.
5+
-->
6+
7+
## What did you do?
8+
9+
<!-- Please replace this with what you did. -->
10+
11+
## What did you expect to happen?
12+
13+
<!-- Please replace this with what you expected to happen. -->
14+
15+
## What happened instead?
16+
17+
<!-- Please replace this with of what happened instead. -->
18+
19+
## General Information
20+
21+
- Hero Version:
22+
23+
- iOS Version(s):
24+
25+
- Swift Version:
26+
27+
- Devices/Simulators:
28+
29+
- Reproducible in Examples? (Yes/No):
30+
31+
## Demo Project
32+
33+
<!-- Please link to or upload a project we can download that reproduces the issue. -->

.github/stale.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 180
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
- confirmed bug
10+
- investigating
11+
- bug?
12+
- WIP
13+
# Label to use when marking an issue as stale
14+
staleLabel: stale
15+
# Comment to post when marking an issue as stale. Set to `false` to disable
16+
markComment: >
17+
This issue has been automatically marked as stale because it has not had
18+
recent activity. It will be closed if no further activity occurs. Thank you
19+
for your contributions.
20+
# Comment to post when closing a stale issue. Set to `false` to disable
21+
closeComment: true
22+

.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/[email protected]
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
DIFF_BASE: ${{ github.base_ref }}

.github/workflows/test.yml

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
xcuserdata/
66
DerivedData/
77
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
8+
/build
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)