Skip to content

Commit

Permalink
Initial Setup (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer authored Mar 6, 2023
1 parent 6c18314 commit 8245d4b
Show file tree
Hide file tree
Showing 46 changed files with 1,401 additions and 419 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the TemplatePackage open source project
# This source file is part of the CardinalKit open-source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
Expand All @@ -16,22 +16,24 @@ on:
workflow_dispatch:

jobs:
build_and_test-spm:
buildandtest:
name: Build and Test Swift Package
uses: StanfordBDHG/.github/.github/workflows/build-and-test-xcodebuild-spm.yml@v1
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
scheme: TemplatePackage
build_and_test-uitests:
name: Build and Test UITest App
uses: StanfordBDHG/.github/.github/workflows/build-and-test-xcodebuild.yml@v1
artifactname: CardinalKitFHIR-Package.xcresult
runsonlabels: '["macOS", "self-hosted"]'
scheme: CardinalKitFHIR-Package
buildandtestuitests:
name: Build and Test UI Tests
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
xcodeprojname: Tests/UITests/UITests.xcodeproj
artifactname: TestApp.xcresult
runsonlabels: '["macOS", "self-hosted"]'
path: Tests/UITests
scheme: TestApp
create-and-upload-coverage-report:
name: Create and Upload Coverage Report
needs: [build_and_test-spm, build_and_test-uitests]
uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v1
uploadcoveragereport:
name: Upload Coverage Report
needs: [buildandtest, buildandtestuitests]
uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
with:
coveragereports: TemplatePackage.xcresult TemplatePackage.xcresult
secrets:
token: ${{ secrets.CODECOV_TOKEN }}
coveragereports: CardinalKitFHIR-Package.xcresult TestApp.xcresult
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the TemplatePackage open source project
# This source file is part of the CardinalKit open-source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
Expand All @@ -15,7 +15,7 @@ on:
jobs:
reuse_action:
name: REUSE Compliance Check
uses: StanfordBDHG/.github/.github/workflows/reuse.yml@v1
uses: StanfordBDHG/.github/.github/workflows/reuse.yml@v2
swiftlint:
name: SwiftLint
uses: StanfordBDHG/.github/.github/workflows/swiftlint.yml@v1
uses: StanfordBDHG/.github/.github/workflows/swiftlint.yml@v2
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#
# This source file is part of the TemplatePackage open source project
# This source file is part of the CardinalKit open-source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
#

# Swift Package Manager
Package.resolved
*.xcodeproj
.swiftpm
.build/
.xcodebuild/
.build
.xcodebuild
.derivedData
coverage.lcov
*.xcresult

Expand Down
7 changes: 4 additions & 3 deletions .spi.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#
# This source file is part of the TemplatePackage open source project
# This source file is part of the CardinalKit open-source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
#

version: 1
builder:
configs:
- platform: ios
documentation_targets:
- TemplatePackage
- CardinalKitFHIR
- CardinalKitFHIRMockDataStorageProvider
8 changes: 5 additions & 3 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#
# This source file is part of the TemplatePackage open source project
# This source file is part of the CardinalKit open-source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#

#
# The whitelist_rules configuration also includes rules that are enabled by default to provide a good overview of all rules.
only_rules:
# All Images that provide context should have an accessibility label. Purely decorative images can be hidden from accessibility.
Expand Down Expand Up @@ -166,6 +166,8 @@ only_rules:
- legacy_multiple
# Struct extension properties and methods are preferred over legacy functions
- legacy_nsgeometry_functions
# Prefer Swift value types to bridged Objective-C reference types
- legacy_objc_type
# Prefer using type.random(in:) over legacy functions.
- legacy_random
# Lines should not span too many characters.
Expand Down
9 changes: 4 additions & 5 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
#
# This source file is part of the TemplatePackage open source project
# This source file is part of the CardinalKit open-source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
#

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Schmiedmayer"
given-names: "Paul"
orcid: "https://orcid.org/0000-0002-8607-9148"
title: "TemplatePackage"
doi: 10.5281/zenodo.7538165
url: "https://github.com/StanfordBDHG/SwiftPackageTemplate"
title: "CardinalKitFHIR"
url: "https://github.com/StanfordBDHG/CardinalKitFHIR"
18 changes: 8 additions & 10 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<!--
#
# This source file is part of the TemplatePackage open source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
This source file is part of the CardinalKit open-source project
SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
SPDX-License-Identifier: MIT
-->

TemplatePackage contributors
CardinalKitFHIR contributors
====================

* [Paul Schmiedmayer](https://github.com/PSchmiedmayer)
158 changes: 158 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
{
"pins" : [
{
"identity" : "abseil-cpp-swiftpm",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/abseil-cpp-SwiftPM.git",
"state" : {
"revision" : "583de9bd60f66b40e78d08599cc92036c2e7e4e1",
"version" : "0.20220203.2"
}
},
{
"identity" : "boringssl-swiftpm",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/boringssl-SwiftPM.git",
"state" : {
"revision" : "dd3eda2b05a3f459fc3073695ad1b28659066eab",
"version" : "0.9.1"
}
},
{
"identity" : "cardinalkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/StanfordBDHG/CardinalKit",
"state" : {
"revision" : "6e90348e30709f4b739fc3473c2fa54fbcf77eec",
"version" : "0.3.3"
}
},
{
"identity" : "fhirmodels",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/FHIRModels",
"state" : {
"revision" : "e115442fb3c5d44ffb1dc9b4e039b77fd143ad96",
"version" : "0.4.0"
}
},
{
"identity" : "firebase-ios-sdk",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/firebase-ios-sdk",
"state" : {
"revision" : "60f9a33e7084482df67b48e16f315f4f7a6f5da9",
"version" : "10.6.0"
}
},
{
"identity" : "googleappmeasurement",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleAppMeasurement.git",
"state" : {
"revision" : "04351180d4c757c6c16127cb57b685fff9ef260b",
"version" : "10.6.0"
}
},
{
"identity" : "googledatatransport",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleDataTransport.git",
"state" : {
"revision" : "f6b558e3f801f2cac336b04f615ce111fa9ddaa0",
"version" : "9.2.1"
}
},
{
"identity" : "googleutilities",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleUtilities.git",
"state" : {
"revision" : "0543562f85620b5b7c510c6bcbef75b562a5127b",
"version" : "7.11.0"
}
},
{
"identity" : "grpc-ios",
"kind" : "remoteSourceControl",
"location" : "https://github.com/grpc/grpc-ios.git",
"state" : {
"revision" : "8440b914756e0d26d4f4d054a1c1581daedfc5b6",
"version" : "1.44.3-grpc"
}
},
{
"identity" : "gtm-session-fetcher",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/gtm-session-fetcher.git",
"state" : {
"revision" : "96d7cc73a71ce950723aa3c50ce4fb275ae180b8",
"version" : "3.1.0"
}
},
{
"identity" : "healthkitonfhir",
"kind" : "remoteSourceControl",
"location" : "https://github.com/StanfordBDHG/HealthKitOnFHIR",
"state" : {
"revision" : "1b7b7d71c30563f84d4c892421caf7f1c79ff09e",
"version" : "0.2.2"
}
},
{
"identity" : "leveldb",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/leveldb.git",
"state" : {
"revision" : "0706abcc6b0bd9cedfbb015ba840e4a780b5159b",
"version" : "1.22.2"
}
},
{
"identity" : "nanopb",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/nanopb.git",
"state" : {
"revision" : "819d0a2173aff699fb8c364b6fb906f7cdb1a692",
"version" : "2.30909.0"
}
},
{
"identity" : "promises",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/promises.git",
"state" : {
"revision" : "ec957ccddbcc710ccc64c9dcbd4c7006fcf8b73a",
"version" : "2.2.0"
}
},
{
"identity" : "researchkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/StanfordBDHG/ResearchKit",
"state" : {
"revision" : "52a9bd8bcf2112b2f70479cd192f8c5fa9850c31",
"version" : "2.2.8"
}
},
{
"identity" : "researchkitonfhir",
"kind" : "remoteSourceControl",
"location" : "https://github.com/StanfordBDHG/ResearchKitOnFHIR",
"state" : {
"revision" : "1bc7a15760916ade4c5058fa798a871e80c2955c",
"version" : "0.1.6"
}
},
{
"identity" : "swift-protobuf",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-protobuf.git",
"state" : {
"revision" : "0af9125c4eae12a4973fb66574c53a54962a9e1e",
"version" : "1.21.0"
}
}
],
"version" : 2
}
5 changes: 5 additions & 0 deletions Package.resolved.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This source file is part of the CardinalKit open-source project

SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)

SPDX-License-Identifier: MIT
Loading

0 comments on commit 8245d4b

Please sign in to comment.