Skip to content

Commit

Permalink
wip: open source licenses (eu-digital-green-certificates#65)
Browse files Browse the repository at this point in the history
shows open source licenses in settings
adds opensourcenotices to app
removes link to github
  • Loading branch information
PaulBallmann authored May 28, 2021
1 parent 7e39183 commit 337c002
Show file tree
Hide file tree
Showing 8 changed files with 544 additions and 42 deletions.
20 changes: 20 additions & 0 deletions DGCAWallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
CEE9DA55263C7D4000A31532 /* CertCode.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEE9DA54263C7D4000A31532 /* CertCode.swift */; };
CEE9DA5D263C865200A31532 /* Brightness.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEE9DA5C263C865200A31532 /* Brightness.swift */; };
CEFAD87F262714C4009AFEF9 /* EHNTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEFAD87E262714C4009AFEF9 /* EHNTests.swift */; };
DA01661C265541C0005B73A1 /* LicenseList.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA01661B265541C0005B73A1 /* LicenseList.swift */; };
DA01661E26554992005B73A1 /* OpenSourceNotices.json in Resources */ = {isa = PBXBuildFile; fileRef = DA01661D26554992005B73A1 /* OpenSourceNotices.json */; };
DA01662026554E02005B73A1 /* LicenseCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA01661F26554E02005B73A1 /* LicenseCell.swift */; };
DA01662226558B2F005B73A1 /* LicenseVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA01662126558B2F005B73A1 /* LicenseVC.swift */; };
DA017DE626552259006E4D49 /* Licenses.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DA017DE526552259006E4D49 /* Licenses.storyboard */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -105,6 +110,11 @@
CEE9DA54263C7D4000A31532 /* CertCode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CertCode.swift; sourceTree = "<group>"; };
CEE9DA5C263C865200A31532 /* Brightness.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Brightness.swift; sourceTree = "<group>"; };
CEFAD87E262714C4009AFEF9 /* EHNTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EHNTests.swift; sourceTree = "<group>"; };
DA01661B265541C0005B73A1 /* LicenseList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LicenseList.swift; sourceTree = "<group>"; };
DA01661D26554992005B73A1 /* OpenSourceNotices.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = OpenSourceNotices.json; sourceTree = "<group>"; };
DA01661F26554E02005B73A1 /* LicenseCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LicenseCell.swift; sourceTree = "<group>"; };
DA01662126558B2F005B73A1 /* LicenseVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LicenseVC.swift; sourceTree = "<group>"; };
DA017DE526552259006E4D49 /* Licenses.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Licenses.storyboard; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -144,6 +154,7 @@
CEA6D6F1261F8D2700715333 /* Main.storyboard */,
CE4BD25A264FF39D00689FD6 /* CertificateViewer.storyboard */,
CE4BD257264FF39400689FD6 /* Settings.storyboard */,
DA017DE526552259006E4D49 /* Licenses.storyboard */,
);
path = Storyboards;
sourceTree = "<group>";
Expand Down Expand Up @@ -178,6 +189,8 @@
CEDABD48263C70EF007A9B97 /* CertPages.swift */,
CEDABD3F263C5FF4007A9B97 /* CertTable.swift */,
CE4BD253264FF28900689FD6 /* Settings.swift */,
DA01661B265541C0005B73A1 /* LicenseList.swift */,
DA01662126558B2F005B73A1 /* LicenseVC.swift */,
);
path = ViewControllers;
sourceTree = "<group>";
Expand All @@ -190,6 +203,7 @@
CE260F55263DD1720083A200 /* WalletCell.swift */,
CEA1556A262F784E0024B7AC /* SelfSizedTableView.swift */,
CEA1556F262F79DE0024B7AC /* InfoCell.swift */,
DA01661F26554E02005B73A1 /* LicenseCell.swift */,
);
path = Components;
sourceTree = "<group>";
Expand All @@ -205,6 +219,7 @@
CEA6D6F9261F8D2900715333 /* Info.plist */,
CE6D4A46264835F100A5D33D /* Localizable.strings */,
CEC7FEDE264C5A41005561BA /* context.jsonc */,
DA01661D26554992005B73A1 /* OpenSourceNotices.json */,
);
path = SupportingFiles;
sourceTree = "<group>";
Expand Down Expand Up @@ -410,8 +425,10 @@
CE4BD255264FF39400689FD6 /* Settings.storyboard in Resources */,
CEC7FEDF264C5A41005561BA /* context.jsonc in Resources */,
CE81533A263FF7EC0030D777 /* README.md in Resources */,
DA01661E26554992005B73A1 /* OpenSourceNotices.json in Resources */,
CEA6D6F5261F8D2900715333 /* Assets.xcassets in Resources */,
CEA6D6F3261F8D2700715333 /* Main.storyboard in Resources */,
DA017DE626552259006E4D49 /* Licenses.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -471,12 +488,15 @@
CE56BC07264068110044FD3F /* GatewayConnection.swift in Sources */,
CEA6D6F0261F8D2700715333 /* Scan.swift in Sources */,
CE13CF23262DDF810070C80E /* RoundedButton.swift in Sources */,
DA01662026554E02005B73A1 /* LicenseCell.swift in Sources */,
CEA6D6EC261F8D2700715333 /* AppDelegate.swift in Sources */,
DA01661C265541C0005B73A1 /* LicenseList.swift in Sources */,
CE891305263581D900CB92AF /* Home.swift in Sources */,
CEA15563262F6DAB0024B7AC /* CertViewerDelegate.swift in Sources */,
CE260F56263DD1720083A200 /* WalletCell.swift in Sources */,
CEA15570262F79DE0024B7AC /* InfoCell.swift in Sources */,
CED949CA263B50CE00883558 /* List.swift in Sources */,
DA01662226558B2F005B73A1 /* LicenseVC.swift in Sources */,
CEA6D6EE261F8D2700715333 /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
41 changes: 41 additions & 0 deletions DGCAWallet/Components/LicenseCell.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
/*-
* ---license-start
* eu-digital-green-certificates / dgca-wallet-app-ios
* ---
* Copyright (C) 2021 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ---license-end
*/
//
// LicenseCell.swift
// DGCAWallet
//
// Created by Paul Ballmann on 19.05.21.
//

import UIKit
import SwiftDGC
import SwiftyJSON

class LicenseCell: UITableViewCell {
@IBOutlet weak var cellLabel: UILabel!

public var licenseObject: JSON = []

public func drawLabel(_ licenseObject: JSON) {
self.licenseObject = licenseObject
self.cellLabel.text = licenseObject["name"].string
}
}
Loading

0 comments on commit 337c002

Please sign in to comment.