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

fix: Add plptools license #19

Merged
merged 1 commit into from
Jun 22, 2024
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
4 changes: 4 additions & 0 deletions Reconnect.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
D813FF152C26E869009CF0DC /* plptools-license in Resources */ = {isa = PBXBuildFile; fileRef = D813FF142C26E869009CF0DC /* plptools-license */; };
D8184C472C253C59008FA79B /* ApplicationModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8184C462C253C59008FA79B /* ApplicationModel.swift */; };
D8184C4B2C253D73008FA79B /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8184C4A2C253D73008FA79B /* SettingsView.swift */; };
D84964DA2C1BFCB600405656 /* ReconnectApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = D84964D92C1BFCB600405656 /* ReconnectApp.swift */; };
Expand Down Expand Up @@ -74,6 +75,7 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
D813FF142C26E869009CF0DC /* plptools-license */ = {isa = PBXFileReference; lastKnownFileType = text; path = "plptools-license"; sourceTree = "<group>"; };
D8184C462C253C59008FA79B /* ApplicationModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ApplicationModel.swift; sourceTree = "<group>"; };
D8184C4A2C253D73008FA79B /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = "<group>"; };
D84964D62C1BFCB600405656 /* Reconnect.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Reconnect.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -368,6 +370,7 @@
D8E31EB82C26E1CA00350082 /* Licenses */ = {
isa = PBXGroup;
children = (
D813FF142C26E869009CF0DC /* plptools-license */,
D8E31EB92C26E1E400350082 /* reconnect-license */,
);
path = Licenses;
Expand Down Expand Up @@ -491,6 +494,7 @@
buildActionMask = 2147483647;
files = (
D84964E12C1BFCB700405656 /* Preview Assets.xcassets in Resources */,
D813FF152C26E869009CF0DC /* plptools-license in Resources */,
D84964DE2C1BFCB700405656 /* Assets.xcassets in Resources */,
D8E31EBA2C26E1E400350082 /* reconnect-license in Resources */,
);
Expand Down
10 changes: 10 additions & 0 deletions Reconnect/Extensions/Licensable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ import Foundation
import Interact
import Licensable

fileprivate let plptoolsLicense = License(id: "https://github.com/inseven/thoughts",
name: "plptools",
author: "plptools Authors",
text: String(contentsOfResource: "plptools-license"),
attributes: [
.url(URL(string: "https://github.com/rrthomas/plptools/")!, title: "GitHub"),
],
licenses: [])

fileprivate let reconnectLicense = License(id: "https://github.com/inseven/thoughts",
name: "Reconnect",
author: "Jason Morley",
Expand All @@ -31,6 +40,7 @@ fileprivate let reconnectLicense = License(id: "https://github.com/inseven/thoug
licenses: [
.interact,
.licensable,
plptoolsLicense,
])

extension Licensable where Self == License {
Expand Down
Loading