Skip to content

Commit

Permalink
Add the license
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley committed May 3, 2024
1 parent 9b513bf commit 250fe27
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Thoughts.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
D89224A72BD736B900DA0932 /* Date.swift in Sources */ = {isa = PBXBuildFile; fileRef = D89224A62BD736B900DA0932 /* Date.swift */; };
D89224A92BD736DF00DA0932 /* TimeZone.swift in Sources */ = {isa = PBXBuildFile; fileRef = D89224A82BD736DF00DA0932 /* TimeZone.swift */; };
D8BA4D492BE59E16001A2A26 /* HighlightedTextEditor in Frameworks */ = {isa = PBXBuildFile; productRef = D8BA4D482BE59E16001A2A26 /* HighlightedTextEditor */; };
D8BA4D4B2BE5A2FD001A2A26 /* highlightedtexteditor-license in Resources */ = {isa = PBXBuildFile; fileRef = D8BA4D4A2BE5A2FD001A2A26 /* highlightedtexteditor-license */; };
D8C283E52BD9939E00161C82 /* TokenView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8C283E42BD9939E00161C82 /* TokenView.swift */; };
D8C283E92BD9954F00161C82 /* HashRainbow in Frameworks */ = {isa = PBXBuildFile; productRef = D8C283E82BD9954F00161C82 /* HashRainbow */; };
D8C283EE2BD9957700161C82 /* TokenViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8C283ED2BD9957700161C82 /* TokenViewModel.swift */; };
Expand Down Expand Up @@ -97,6 +98,7 @@
D89224A32BD7368F00DA0932 /* TimeZoneTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimeZoneTests.swift; sourceTree = "<group>"; };
D89224A62BD736B900DA0932 /* Date.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Date.swift; sourceTree = "<group>"; };
D89224A82BD736DF00DA0932 /* TimeZone.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimeZone.swift; sourceTree = "<group>"; };
D8BA4D4A2BE5A2FD001A2A26 /* highlightedtexteditor-license */ = {isa = PBXFileReference; lastKnownFileType = text; path = "highlightedtexteditor-license"; sourceTree = "<group>"; };
D8C283E42BD9939E00161C82 /* TokenView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TokenView.swift; sourceTree = "<group>"; };
D8C283ED2BD9957700161C82 /* TokenViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TokenViewModel.swift; sourceTree = "<group>"; };
D8C283EF2BD995AD00161C82 /* PickerTextField.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PickerTextField.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -282,6 +284,7 @@
D8F06D552B6734540039AEF4 /* material-icons-license */,
D8F06D532B6733650039AEF4 /* thoughts-license */,
D84010C42BD74C760049715E /* yams-license */,
D8BA4D4A2BE5A2FD001A2A26 /* highlightedtexteditor-license */,
);
path = Licenses;
sourceTree = "<group>";
Expand Down Expand Up @@ -410,6 +413,7 @@
D852AF062B6027CC00B77A3D /* Assets.xcassets in Resources */,
D84010C52BD74C760049715E /* yams-license in Resources */,
D8C283F72BD9ADC400161C82 /* hashrainbow-license in Resources */,
D8BA4D4B2BE5A2FD001A2A26 /* highlightedtexteditor-license in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
12 changes: 11 additions & 1 deletion Thoughts/Extensions/Licensable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ fileprivate let hashRainbowLicense = License(id: "https://github.com/saramah/Has
title: "GitHub"),
])

fileprivate let highlightedTextEditorLicense = License(id: "https://github.com/kyle-n/HighlightedTextEditor",
name: "HighlightedTextEditor",
author: "Kyle Nazario",
text: String(contentsOfResource: "highlightedtexteditor-license"),
attributes: [
.url(URL(string: "https://github.com/kyle-n/HighlightedTextEditor/")!,
title: "GitHub"),
])

fileprivate let yamsLicense = License(id: "https://github.com/jpsim/Yams",
name: "Yams",
author: "JP Simard",
Expand All @@ -59,8 +68,9 @@ fileprivate let thoughtsLicense = License(id: "https://github.com/inseven/though
licenses: [
.interact,
.licensable,
materialIconsLicense,
hashRainbowLicense,
highlightedTextEditorLicense,
materialIconsLicense,
yamsLicense,
])

Expand Down
21 changes: 21 additions & 0 deletions Thoughts/Licenses/highlightedtexteditor-license
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Kyle Nazario

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 4 additions & 2 deletions Thoughts/ThoughtsApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ struct ThoughtsApp: App {
}

About(repository: "inseven/thoughts", copyright: "Copyright © 2024 Jason Morley") {
Diligence.Action("GitHub", url: URL(string: "https://github.com/inseven/thoughts")!)
Diligence.Action("Support", url: URL(address: "[email protected]", subject: Self.title)!)
Action("Website", url: URL(string: "https://thoughts.jbmorley.co.uk")!)
Action("Privacy Policy", url: URL(string: "https://thoughts.jbmorley.co.uk/privacy-policy")!)
Action("GitHub", url: URL(string: "https://github.com/inseven/thoughts")!)
Action("Support", url: URL(address: "[email protected]", subject: Self.title)!)
} acknowledgements: {
Acknowledgements("Developers") {
Credit("Jason Morley", url: URL(string: "https://jbmorley.co.uk"))
Expand Down

0 comments on commit 250fe27

Please sign in to comment.