Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First Implementation of the Access Guard Module #2

Merged
merged 9 commits into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: SpeziAccessCode
artifactname: SpeziAccessCode.xcresult
scheme: SpeziAccessGuard
artifactname: SpeziAccessGuard.xcresult
ios:
name: Build and Test iOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
Expand All @@ -46,4 +46,4 @@ jobs:
needs: [packageios, ios, ipados]
uses: StanfordSpezi/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
with:
coveragereports: SpeziAccessCode.xcresult TestApp.xcresult TestAppiPadOS.xcresult
coveragereports: SpeziAccessGuard.xcresult TestApp.xcresult TestAppiPadOS.xcresult
2 changes: 1 addition & 1 deletion .spi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ builder:
configs:
- platform: ios
documentation_targets:
- SpeziAccessCode
- SpeziAccessGuard
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ authors:
- family-names: "Schmiedmayer"
given-names: "Paul"
orcid: "https://orcid.org/0000-0002-8607-9148"
title: "SpeziAccessCode"
url: "https://github.com/StanfordSpezi/SpeziAccessCode"
title: "SpeziAccessGuard"
url: "https://github.com/StanfordSpezi/SpeziAccessGuard"
3 changes: 1 addition & 2 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@

-->

SpeziAccessCode contributors
SpeziAccessGuard contributors
====================

* [Paul Schmiedmayer](https://github.com/PSchmiedmayer)
* [Vishnu Ravi](https://github.com/vishnuravi)
12 changes: 6 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@ import PackageDescription


let package = Package(
name: "SpeziAccessCode",
name: "SpeziAccessGuard",
defaultLocalization: "en",
platforms: [
.iOS(.v16)
],
products: [
.library(name: "SpeziAccessCode", targets: ["SpeziAccessCode"])
.library(name: "SpeziAccessGuard", targets: ["SpeziAccessGuard"])
],
dependencies: [
.package(url: "https://github.com/StanfordSpezi/Spezi", .upToNextMinor(from: "0.7.2")),
.package(url: "https://github.com/StanfordSpezi/SpeziStorage", .upToNextMinor(from: "0.4.2")),
.package(url: "https://github.com/StanfordSpezi/SpeziViews", .upToNextMinor(from: "0.4.2")),
.package(url: "https://github.com/StanfordSpezi/SpeziViews", .upToNextMinor(from: "0.4.2"))
],
targets: [
.target(
name: "SpeziAccessCode",
name: "SpeziAccessGuard",
dependencies: [
.product(name: "Spezi", package: "Spezi"),
.product(name: "SpeziSecureStorage", package: "SpeziStorage"),
.product(name: "SpeziViews", package: "SpeziViews")
]
),
.testTarget(
name: "SpeziAccessCodeTests",
name: "SpeziAccessGuardTests",
dependencies: [
.target(name: "SpeziAccessCode")
.target(name: "SpeziAccessGuard")
]
)
]
Expand Down
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ SPDX-License-Identifier: MIT

-->

# SpeziAccessCode
# SpeziAccessGuard

[![Build and Test](https://github.com/StanfordSpezi/SpeziAccessCode/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/StanfordSpezi/SpeziAccessCode/actions/workflows/build-and-test.yml)
[![codecov](https://codecov.io/gh/StanfordSpezi/SpeziAccessCode/branch/main/graph/badge.svg?token=X7BQYSUKOH)](https://codecov.io/gh/StanfordSpezi/SpeziAccessCode)
[![DOI](https://zenodo.org/badge/573230182.svg)](https://zenodo.org/badge/latestdoi/573230182)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FStanfordSpezi%2FSpeziAccessCode%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/StanfordSpezi/SpeziAccessCode)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FStanfordSpezi%2FSpeziAccessCode%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/StanfordSpezi/SpeziAccessCode)
[![Build and Test](https://github.com/StanfordSpezi/SpeziAccessGuard/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/StanfordSpezi/SpeziAccessGuard/actions/workflows/build-and-test.yml)


## How To Use This Template
Expand All @@ -30,7 +26,7 @@ Follow these steps to customize it to your needs:
- ... add ensure that the targets are all added in the code coverage settings of your .xctestplan file in the Xcode Project (*Shared Settings > Code Coverage > Code Coverage*).
4. You will either need to add the [CodeCov GitHub App](https://github.com/apps/codecov) or add a codecov.io token to your [GitHub Actions Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-an-environment) following the instructions of the [Codecov GitHub Action](https://github.com/marketplace/actions/codecov#usage). The StanfordBDHG organization already has the [CodeCov GitHub App](https://github.com/apps/codecov) installed. If you do not want to cover test coverage data, you can remove the code coverage job in the `build-and-test.yml` GitHub Action.
5. Adjust this README.md to describe your project and adjust the badges at the top to point to the correct GitHub Action of your repository and Codecov badge.
6. The Swift Package template includes a Swift Package Index configuration file to automatically build the package and [host the documentation on the Swift Package Index website](https://blog.swiftpackageindex.com/posts/auto-generating-auto-hosting-and-auto-updating-docc-documentation/). Adjust the `.spi.yml` file to include all targets that you want to build documentation for. You can follow the [instructions of the Swift Package Index](https://swiftpackageindex.com/add-a-package) to include your Swift Package in the Swift Package Index. You can link to the [API documentation](https://swiftpackageindex.com/StanfordSpezi/SpeziAccessCode/documentation) from your README file.
6. The Swift Package template includes a Swift Package Index configuration file to automatically build the package and [host the documentation on the Swift Package Index website](https://blog.swiftpackageindex.com/posts/auto-generating-auto-hosting-and-auto-updating-docc-documentation/). Adjust the `.spi.yml` file to include all targets that you want to build documentation for. You can follow the [instructions of the Swift Package Index](https://swiftpackageindex.com/add-a-package) to include your Swift Package in the Swift Package Index. You can link to the [API documentation](https://swiftpackageindex.com/StanfordSpezi/SpeziAccessGuard/documentation) from your README file.
7. Adjust the CITATION.cff file to amend information about the new Swift Package ([learn more about CITATION files on GitHub](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files)) and [register the Swift Package on Zenodo](https://docs.github.com/en/repositories/archiving-a-github-repository/referencing-and-citing-content).


Expand All @@ -44,12 +40,12 @@ The project can be added to your Xcode project or Swift Package using the [Swift


## License
This project is licensed under the MIT License. See [Licenses](https://github.com/StanfordSpezi/SpeziAccessCode/tree/main/LICENSES) for more information.
This project is licensed under the MIT License. See [Licenses](https://github.com/StanfordSpezi/SpeziAccessGuard/tree/main/LICENSES) for more information.


## Contributors
This project is developed as part of the Stanford Byers Center for Biodesign at Stanford University.
See [CONTRIBUTORS.md](https://github.com/StanfordSpezi/SpeziAccessCode/tree/main/CONTRIBUTORS.md) for a full list of all SpeziAccessCode contributors.
See [CONTRIBUTORS.md](https://github.com/StanfordSpezi/SpeziAccessGuard/tree/main/CONTRIBUTORS.md) for a full list of all SpeziAccessGuard contributors.

![Stanford Byers Center for Biodesign Logo](https://raw.githubusercontent.com/StanfordSpezi/.github/main/assets/biodesign-footer-light.png#gh-light-mode-only)
![Stanford Byers Center for Biodesign Logo](https://raw.githubusercontent.com/StanfordSpezi/.github/main/assets/biodesign-footer-dark.png#gh-dark-mode-only)
100 changes: 0 additions & 100 deletions Sources/SpeziAccessCode/AccessGuarded.swift

This file was deleted.

98 changes: 0 additions & 98 deletions Sources/SpeziAccessCode/CodeViews/SetCodeView.swift

This file was deleted.

16 changes: 0 additions & 16 deletions Sources/SpeziAccessCode/Resources/de.lproj/Localizable.strings

This file was deleted.

16 changes: 0 additions & 16 deletions Sources/SpeziAccessCode/Resources/en.lproj/Localizable.strings

This file was deleted.

Loading