Skip to content

Commit 1c7aadc

Browse files
Initial commit
0 parents  commit 1c7aadc

File tree

168 files changed

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

168 files changed

+6921
-0
lines changed

.firebaserc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "stanfordspezitemplateapp"
4+
}
5+
}

.firebaserc.license

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This source file is part of the Stanford Spezi Template Application open-source project
2+
3+
SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
4+
5+
SPDX-License-Identifier: MIT

.github/workflows/beta-deployment.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#
2+
# This source file is part of the Stanford Spezi Template Application open-source project
3+
#
4+
# SPDX-FileCopyrightText: 2023 Stanford University
5+
#
6+
# SPDX-License-Identifier: MIT
7+
#
8+
9+
name: Beta Deployment
10+
11+
on:
12+
push:
13+
branches:
14+
- main
15+
workflow_dispatch:
16+
17+
concurrency:
18+
group: Beta-Deployment
19+
cancel-in-progress: false
20+
21+
jobs:
22+
buildandtest:
23+
name: Build and Test
24+
uses: ./.github/workflows/build-and-test.yml
25+
permissions:
26+
contents: read
27+
secrets: inherit
28+
staticanaylsis:
29+
name: Static Analysis
30+
uses: ./.github/workflows/static-analysis.yml
31+
permissions:
32+
security-events: write
33+
actions: read
34+
contents: read
35+
secrets: inherit
36+
iosapptestflightdeployment:
37+
name: iOS App TestFlight Deployment
38+
needs: buildandtest
39+
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
40+
permissions:
41+
contents: read
42+
with:
43+
googleserviceinfoplistpath: 'TemplateApplication/Supporting Files/GoogleService-Info.plist'
44+
setupsigning: true
45+
fastlanelane: beta
46+
secrets: inherit
47+
deployfirebase:
48+
name: Deploy Firebase Project
49+
needs: iosapptestflightdeployment
50+
uses: StanfordBDHG/.github/.github/workflows/firebase-deploy.yml@v2
51+
permissions:
52+
contents: read
53+
with:
54+
arguments: '--debug'
55+
secrets:
56+
GOOGLE_APPLICATION_CREDENTIALS_BASE64: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_BASE64 }}

.github/workflows/build-and-test.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
# This source file is part of the Stanford Spezi Template Application open-source project
3+
#
4+
# SPDX-FileCopyrightText: 2023 Stanford University
5+
#
6+
# SPDX-License-Identifier: MIT
7+
#
8+
9+
name: Build and Test
10+
11+
on:
12+
pull_request:
13+
workflow_dispatch:
14+
workflow_call:
15+
16+
concurrency:
17+
group: Build-and-Test-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
buildandtest:
22+
name: Build and Test
23+
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
24+
permissions:
25+
contents: read
26+
with:
27+
artifactname: TemplateApplication.xcresult
28+
runsonlabels: '["macOS", "self-hosted"]'
29+
setupfirebaseemulator: true
30+
customcommand: "firebase emulators:exec 'fastlane test'"
31+
uploadcoveragereport:
32+
name: Upload Coverage Report
33+
needs: buildandtest
34+
uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
35+
permissions:
36+
contents: read
37+
with:
38+
coveragereports: TemplateApplication.xcresult
39+
secrets:
40+
token: ${{ secrets.CODECOV_TOKEN }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#
2+
# This source file is part of the Stanford Spezi Template Application open-source project
3+
#
4+
# SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
5+
#
6+
# SPDX-License-Identifier: MIT
7+
#
8+
9+
name: Documentation Deployment
10+
11+
on:
12+
push:
13+
branches:
14+
- main
15+
pull_request:
16+
workflow_dispatch:
17+
18+
concurrency:
19+
group: Documentation-Deployment-${{ github.ref }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
docs:
24+
name: Documentation Deployment
25+
uses: StanfordBDHG/.github/.github/workflows/docc-github-pages.yml@v2
26+
permissions:
27+
contents: read
28+
pages: write
29+
id-token: write
30+
with:
31+
scheme: 'TemplateApplication'
32+
dryrun: ${{ github.ref_name != 'main' }}
33+
xcodeversion: "16.1" # Temporary workaround for: https://github.com/actions/runner-images/issues/11335. Remove when resolved.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#
2+
# This source file is part of the Stanford Spezi Template Application open-source project
3+
#
4+
# SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
5+
#
6+
# SPDX-License-Identifier: MIT
7+
#
8+
9+
name: Monthly Markdown Link Check
10+
11+
on:
12+
# Runs at midnight on the first of every month
13+
schedule:
14+
- cron: "0 0 1 * *"
15+
16+
jobs:
17+
markdown_link_check:
18+
name: Markdown Link Check
19+
uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2
20+
permissions:
21+
contents: read

.github/workflows/static-analysis.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#
2+
# This source file is part of the Stanford Spezi open source project
3+
#
4+
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
5+
#
6+
# SPDX-License-Identifier: MIT
7+
#
8+
9+
name: Static Analysis
10+
11+
on:
12+
pull_request:
13+
workflow_dispatch:
14+
workflow_call:
15+
16+
concurrency:
17+
group: Static-Analysis-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
reuse_action:
22+
name: REUSE Compliance Check
23+
uses: StanfordBDHG/.github/.github/workflows/reuse.yml@v2
24+
permissions:
25+
contents: read
26+
swiftlint:
27+
name: SwiftLint
28+
uses: StanfordBDHG/.github/.github/workflows/swiftlint.yml@v2
29+
permissions:
30+
contents: read
31+
periphery:
32+
name: Periphery
33+
uses: StanfordSpezi/.github/.github/workflows/periphery.yml@v2
34+
permissions:
35+
contents: read
36+
with:
37+
runsonlabels: '["macOS", "self-hosted"]'
38+
markdownlinkcheck:
39+
name: Markdown Link Check
40+
uses: StanfordBDHG/.github/.github/workflows/markdown-link-check.yml@v2
41+
permissions:
42+
contents: read
43+
codeql:
44+
name: CodeQL
45+
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
46+
permissions:
47+
security-events: write
48+
actions: read
49+
contents: read
50+
with:
51+
codeql: true
52+
fastlanelane: codeql
53+
xcodeversion: "16.1" # Temporary workaround for: https://github.com/actions/runner-images/issues/11335. Remove when resolved.

.gitignore

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#
2+
# This source file is part of the Stanford Spezi Template Application open-source project
3+
#
4+
# SPDX-FileCopyrightText: 2023 Stanford University
5+
#
6+
# SPDX-License-Identifier: MIT
7+
#
8+
9+
# Swift Package Manager
10+
*.xcodeproj
11+
.swiftpm
12+
.derivedData
13+
.build
14+
.docs
15+
!TemplateApplication.xcodeproj
16+
17+
# IDE related folders
18+
.idea
19+
20+
# Xcode
21+
xcuserdata/
22+
*.ipa
23+
*.dSYM
24+
*.dSYM.zip
25+
26+
# Other files
27+
.DS_Store
28+
.env
29+
30+
# Tests
31+
report.junit
32+
report.html
33+
TemplateApplication.xcresult
34+
35+
# Logs
36+
logs
37+
*.log
38+
npm-debug.log*
39+
yarn-debug.log*
40+
yarn-error.log*
41+
firebase-debug.log*
42+
firebase-debug.*.log*
43+
44+
# Firebase cache
45+
.firebase/
46+
47+
# Swift Package List
48+
TemplateApplication/package-list.json

.periphery.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#
2+
# This source file is part of the Stanford Spezi Template Application open-source project
3+
#
4+
# SPDX-FileCopyrightText: 2023 Stanford University
5+
#
6+
# SPDX-License-Identifier: MIT
7+
#
8+
9+
project: TemplateApplication.xcodeproj
10+
schemes:
11+
- TemplateApplication
12+
targets:
13+
- TemplateApplication
14+
- TemplateApplicationTests
15+
- TemplateApplicationUITests

.reuse/dep5

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
3+
Files: TemplateApplication.xcodeproj/*
4+
Copyright: 2024 Stanford University and the project authors (see CONTRIBUTORS.md)
5+
License: MIT
6+
Comment: All Xcode Project Configuration Files are part of the Stanford Spezi Template Application open-source project.

0 commit comments

Comments
 (0)