Skip to content

Commit

Permalink
Intergrate SpeziLicense package (#75)
Browse files Browse the repository at this point in the history
# Intergrate SpeziLicense package

## ♻️ Current situation & Problem
Currently, the Template Application features a custom view that renders
a list of used package dependencies. This code was moved to a dedicated
SpeziLicense module to enables an easier replication of this
functionality outside of the Template Application.

Now, the corresponding files in Template Application should be removed
and the SpeziLicense package should be added as a dependency.


## ⚙️ Release Notes 
- Remove all files related to the package list
- Add SpeziLicense package dependency
- Upgrade SwiftPackageList package to version 4

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md).

---------

Co-authored-by: Paul Schmiedmayer <[email protected]>
  • Loading branch information
NikolaiMadlener and PSchmiedmayer authored Apr 4, 2024
1 parent fb35251 commit eff5907
Show file tree
Hide file tree
Showing 13 changed files with 170 additions and 403 deletions.
5 changes: 0 additions & 5 deletions Scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,10 @@ brew install fastlane
echo 'export LC_ALL=en_US.UTF-8' >> ~/.zshrc
echo 'export LANG=en_US.UTF-8' >> ~/.zshrc

brew install swiftlint

brew install git-lfs
git lfs install
git lfs install --system

brew tap FelixHerrmann/tap
brew install swift-package-list

# Ensure that everything on the system is up-to-date
brew upgrade

Expand Down
120 changes: 52 additions & 68 deletions TemplateApplication.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"originHash" : "9ddbf125e828f8f258514b9b7b616777823852827ae6b79035a44b66b986b5e0",
"originHash" : "d2097b02aed2e09776146d22c31b71e71570248079de679a782c846c09d0ae6f",
"pins" : [
{
"identity" : "abseil-cpp-binary",
Expand All @@ -19,10 +19,28 @@
"version" : "10.18.1"
}
},
{
"identity" : "collectionconcurrencykit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/JohnSundell/CollectionConcurrencyKit.git",
"state" : {
"revision" : "b4f23e24b5a1bff301efc5e70871083ca029ff95",
"version" : "0.2.0"
}
},
{
"identity" : "cryptoswift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/krzyzanowskim/CryptoSwift.git",
"state" : {
"revision" : "7892a123f7e8d0fe62f9f03728b17bbd4f94df5c",
"version" : "1.8.1"
}
},
{
"identity" : "fhirmodels",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/FHIRModels",
"location" : "https://github.com/apple/FHIRModels.git",
"state" : {
"revision" : "861afd5816a98d38f86220eab2f812d76cad84a0",
"version" : "0.5.0"
Expand All @@ -33,17 +51,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/firebase-ios-sdk.git",
"state" : {
"revision" : "fcf5ced6dae2d43fced2581e673cc3b59bdb8ffa",
"version" : "10.23.0"
"revision" : "888f0b6026e2441a69e3ee2ad5293c7a92031e62",
"version" : "10.23.1"
}
},
{
"identity" : "googleappmeasurement",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleAppMeasurement.git",
"state" : {
"revision" : "6ec4ca62b00a665fa09b594fab897753a8c635fa",
"version" : "10.23.0"
"revision" : "c7a5917ebe48d69f421aadf154ef3969c8b7f12d",
"version" : "10.23.1"
}
},
{
Expand Down Expand Up @@ -78,8 +96,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/gtm-session-fetcher.git",
"state" : {
"revision" : "76135c9f4e1ac85459d5fec61b6f76ac47ab3a4c",
"version" : "3.3.1"
"revision" : "9534039303015a84837090d20fa21cae6e5eadb6",
"version" : "3.3.2"
}
},
{
Expand Down Expand Up @@ -145,6 +163,15 @@
"version" : "1.1.2"
}
},
{
"identity" : "sourcekitten",
"kind" : "remoteSourceControl",
"location" : "https://github.com/jpsim/SourceKitten.git",
"state" : {
"revision" : "b6dc09ee51dfb0c66e042d2328c017483a1a5d56",
"version" : "0.34.1"
}
},
{
"identity" : "spezi",
"kind" : "remoteSourceControl",
Expand Down Expand Up @@ -199,6 +226,15 @@
"version" : "0.5.3"
}
},
{
"identity" : "spezilicense",
"kind" : "remoteSourceControl",
"location" : "https://github.com/StanfordSpezi/SpeziLicense",
"state" : {
"revision" : "d839e7138ca2e231f5bdd90c3e4ab06dba9bc30b",
"version" : "0.1.0"
}
},
{
"identity" : "spezimockwebservice",
"kind" : "remoteSourceControl",
Expand Down Expand Up @@ -256,10 +292,10 @@
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser",
"location" : "https://github.com/apple/swift-argument-parser.git",
"state" : {
"revision" : "46989693916f56d1186bd59ac15124caef896560",
"version" : "1.3.1"
"revision" : "8f4d2753f0e4778c76d5f05ad16c74f707390531",
"version" : "1.2.3"
}
},
{
Expand All @@ -276,17 +312,53 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/FelixHerrmann/swift-package-list",
"state" : {
"revision" : "412180a72b9a1f8262213c16459e3533b0385ea5",
"version" : "3.1.0"
"revision" : "9e7edc38f2a599424b9437c32baf1e6a8b9621b8",
"version" : "4.1.0"
}
},
{
"identity" : "swift-protobuf",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-protobuf.git",
"state" : {
"revision" : "65e8f29b2d63c4e38e736b25c27b83e012159be8",
"version" : "1.25.2"
"revision" : "9f0c76544701845ad98716f3f6a774a892152bcb",
"version" : "1.26.0"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "6ad4ea24b01559dde0773e3d091f1b9e36175036",
"version" : "509.0.2"
}
},
{
"identity" : "swiftlint",
"kind" : "remoteSourceControl",
"location" : "https://github.com/realm/SwiftLint.git",
"state" : {
"revision" : "f17a4f9dfb6a6afb0408426354e4180daaf49cee",
"version" : "0.54.0"
}
},
{
"identity" : "swiftytexttable",
"kind" : "remoteSourceControl",
"location" : "https://github.com/scottrhoyt/SwiftyTextTable.git",
"state" : {
"revision" : "c6df6cf533d120716bff38f8ff9885e1ce2a4ac3",
"version" : "0.9.0"
}
},
{
"identity" : "swxmlhash",
"kind" : "remoteSourceControl",
"location" : "https://github.com/drmohundro/SWXMLHash.git",
"state" : {
"revision" : "a853604c9e9a83ad9954c7e3d2a565273982471f",
"version" : "7.0.2"
}
},
{
Expand Down Expand Up @@ -315,6 +387,15 @@
"revision" : "51da3403f128b120705571ce61e0fe190f8889e6",
"version" : "1.0.1"
}
},
{
"identity" : "yams",
"kind" : "remoteSourceControl",
"location" : "https://github.com/jpsim/Yams.git",
"state" : {
"revision" : "8a835d918245ca22f36663dd3862138805d7f707",
"version" : "5.1.0"
}
}
],
"version" : 3
Expand Down
3 changes: 2 additions & 1 deletion TemplateApplication/Account/AccountSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import SpeziAccount
import SpeziLicense
import SwiftUI


Expand All @@ -26,7 +27,7 @@ struct AccountSheet: View {
if account.signedIn && !isInSetup {
AccountOverview(isEditing: $overviewIsEditing) {
NavigationLink {
ContributionsList()
ContributionsList(projectLicense: .mit)
} label: {
Text("LICENSE_INFO_TITLE")
}
Expand Down
53 changes: 0 additions & 53 deletions TemplateApplication/Contributions/ContributionsList.swift

This file was deleted.

104 changes: 0 additions & 104 deletions TemplateApplication/Contributions/Package+LicenseType.swift

This file was deleted.

Loading

0 comments on commit eff5907

Please sign in to comment.