From cb77d17d3949ccfc9e14954dcc196babc62674c5 Mon Sep 17 00:00:00 2001 From: Andreas Bauer Date: Sun, 9 Jun 2024 19:31:27 +0200 Subject: [PATCH] Basic project setup --- .github/workflows/build-and-test.yml | 36 +++++++++---------- .github/workflows/pull_request.yml | 2 +- .gitignore | 2 +- .spi.yml | 4 +-- .swiftlint.yml | 2 +- CITATION.cff | 12 +++---- CONTRIBUTORS.md | 4 +-- Package.swift | 13 +++---- README.md | 11 +++--- .../TemplatePackage.docc/TemplatePackage.md | 2 +- Sources/TemplatePackage/TemplatePackage.swift | 19 ---------- .../TemplatePackageTests.swift | 18 ---------- 12 files changed, 44 insertions(+), 81 deletions(-) rename Sources/{TemplatePackage => SpeziOmron}/TemplatePackage.docc/TemplatePackage.md (84%) delete mode 100644 Sources/TemplatePackage/TemplatePackage.swift delete mode 100644 Tests/TemplatePackageTests/TemplatePackageTests.swift diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index a62aa6d..6ed53d0 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -1,5 +1,5 @@ # -# This source file is part of the TemplatePackage open source project +# This source file is part of the Stanford SpeziDevices open source project # # SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md) # @@ -20,41 +20,41 @@ jobs: name: Build and Test Swift Package iOS uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 with: - scheme: TemplatePackage - resultBundle: TemplatePackage-iOS.xcresult - artifactname: TemplatePackage-iOS.xcresult + scheme: SpeziDevices + resultBundle: SpeziDevices-iOS.xcresult + artifactname: SpeziDevices-iOS.xcresult packagewatchos: name: Build and Test Swift Package watchOS uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 with: - scheme: TemplatePackage + scheme: SpeziDevices destination: 'platform=watchOS Simulator,name=Apple Watch Series 9 (45mm)' - resultBundle: TemplatePackage-watchOS.xcresult - artifactname: TemplatePackage-watchOS.xcresult + resultBundle: SpeziDevices-watchOS.xcresult + artifactname: SpeziDevices-watchOS.xcresult packagevisionos: name: Build and Test Swift Package visionOS uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 with: - scheme: TemplatePackage + scheme: SpeziDevices destination: 'platform=visionOS Simulator,name=Apple Vision Pro' - resultBundle: TemplatePackage-visionOS.xcresult - artifactname: TemplatePackage-visionOS.xcresult + resultBundle: SpeziDevices-visionOS.xcresult + artifactname: SpeziDevices-visionOS.xcresult packagetvos: name: Build and Test Swift Package tvOS uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 with: - scheme: TemplatePackage - resultBundle: TemplatePackage-tvOS.xcresult + scheme: SpeziDevices + resultBundle: SpeziDevices-tvOS.xcresult destination: 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)' - artifactname: TemplatePackage-tvOS.xcresult + artifactname: SpeziDevices-tvOS.xcresult packagemacos: name: Build and Test Swift Package macOS uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 with: - scheme: TemplatePackage - resultBundle: TemplatePackage-macOS.xcresult + scheme: SpeziDevices + resultBundle: SpeziDevices-macOS.xcresult destination: 'platform=macOS,arch=arm64' - artifactname: TemplatePackage-macOS.xcresult + artifactname: SpeziDevices-macOS.xcresult ios: name: Build and Test iOS uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 @@ -110,7 +110,7 @@ jobs: with: codeql: true test: false - scheme: TemplatePackage + scheme: SpeziDevices permissions: security-events: write actions: read @@ -119,6 +119,6 @@ jobs: needs: [packageios, packagewatchos, packagevisionos, packagetvos, packagemacos, ios, ipados, watchos, visionos, tvos] uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v2 with: - coveragereports: TemplatePackage-iOS.xcresult TemplatePackage-watchOS.xcresult TemplatePackage-visionOS.xcresult TemplatePackage-tvOS.xcresult TemplatePackage-macOS.xcresult TestApp-iOS.xcresult TestApp-iPadOS.xcresult TestApp-watchOS.xcresult TestApp-visionOS.xcresult TestApp-tvOS.xcresult + coveragereports: SpeziDevices-iOS.xcresult SpeziDevices-watchOS.xcresult SpeziDevices-visionOS.xcresult SpeziDevices-tvOS.xcresult SpeziDevices-macOS.xcresult TestApp-iOS.xcresult TestApp-iPadOS.xcresult TestApp-watchOS.xcresult TestApp-visionOS.xcresult TestApp-tvOS.xcresult secrets: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 45ed630..4d46666 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,5 +1,5 @@ # -# This source file is part of the TemplatePackage open source project +# This source file is part of the Stanford SpeziDevices open source project # # SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md) # diff --git a/.gitignore b/.gitignore index f9a765f..929b1be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # -# This source file is part of the TemplatePackage open source project +# This source file is part of the Stanford SpeziDevices open source project # # SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md) # diff --git a/.spi.yml b/.spi.yml index 504bb5a..c7bba65 100644 --- a/.spi.yml +++ b/.spi.yml @@ -1,5 +1,5 @@ # -# This source file is part of the TemplatePackage open source project +# This source file is part of the Stanford SpeziDevices open source project # # SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md) # @@ -11,4 +11,4 @@ builder: configs: - platform: ios documentation_targets: - - TemplatePackage + - SpeziOmron diff --git a/.swiftlint.yml b/.swiftlint.yml index 3c7bab5..96eebc3 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -1,5 +1,5 @@ # -# This source file is part of the TemplatePackage open source project +# This source file is part of the Stanford SpeziDevices open source project # # SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md) # diff --git a/CITATION.cff b/CITATION.cff index ee53639..8e4bc03 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -1,5 +1,5 @@ # -# This source file is part of the TemplatePackage open source project +# This source file is part of the Stanford SpeziDevices open source project # # SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md) # @@ -12,9 +12,9 @@ authors: - family-names: "Schmiedmayer" given-names: "Paul" orcid: "https://orcid.org/0000-0002-8607-9148" -- family-names: "Ravi" - given-names: "Vishnu" - orcid: "https://orcid.org/0000-0003-0359-1275" -title: "TemplatePackage" +- family-names: "Bauer" + given-names: "Andreas" + orcid: "https://orcid.org/0000-0002-1680-237X" +title: "SpeziDevices" doi: 10.5281/zenodo.7538165 -url: "https://github.com/StanfordBDHG/SwiftPackageTemplate" +url: "https://github.com/StanfordSpezi/SpeziDevices" diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 7574c84..5e26835 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1,7 +1,7 @@ + ## How To Use This Template diff --git a/Sources/TemplatePackage/TemplatePackage.docc/TemplatePackage.md b/Sources/SpeziOmron/TemplatePackage.docc/TemplatePackage.md similarity index 84% rename from Sources/TemplatePackage/TemplatePackage.docc/TemplatePackage.md rename to Sources/SpeziOmron/TemplatePackage.docc/TemplatePackage.md index 2417f3d..27f0c89 100644 --- a/Sources/TemplatePackage/TemplatePackage.docc/TemplatePackage.md +++ b/Sources/SpeziOmron/TemplatePackage.docc/TemplatePackage.md @@ -2,7 +2,7 @@