Skip to content

Commit

Permalink
Feature/licenses (#83)
Browse files Browse the repository at this point in the history
* wip: license view

* feat: adds licensevc to settings
  • Loading branch information
PaulBallmann authored May 28, 2021
1 parent 0bb719b commit b1a9279
Show file tree
Hide file tree
Showing 7 changed files with 324 additions and 45 deletions.
16 changes: 14 additions & 2 deletions DGCAVerifier.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
CEC7FEE1264C819D005561BA /* context.jsonc in Resources */ = {isa = PBXBuildFile; fileRef = CEC7FEE0264C819D005561BA /* context.jsonc */; };
CED2726026398683003D47A9 /* UIFont.swift in Sources */ = {isa = PBXBuildFile; fileRef = CED2725F26398683003D47A9 /* UIFont.swift */; };
CEFAD87F262714C4009AFEF9 /* EHNTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEFAD87E262714C4009AFEF9 /* EHNTests.swift */; };
DA793258265BBFB50043BA06 /* LicenseVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA793257265BBFB50043BA06 /* LicenseVC.swift */; };
DA79325A265BC00F0043BA06 /* LicenseCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA793259265BC00F0043BA06 /* LicenseCell.swift */; };
DA81E47E265E71B500C9F732 /* OpenSourceNotices.json in Resources */ = {isa = PBXBuildFile; fileRef = DA81E47D265E71B500C9F732 /* OpenSourceNotices.json */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -92,6 +95,9 @@
CED2725F26398683003D47A9 /* UIFont.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIFont.swift; sourceTree = "<group>"; };
CEDCA79B2639E77800FCB83E /* Package.resolved */ = {isa = PBXFileReference; lastKnownFileType = text; name = Package.resolved; path = DGCAVerifier.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved; sourceTree = SOURCE_ROOT; };
CEFAD87E262714C4009AFEF9 /* EHNTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EHNTests.swift; sourceTree = "<group>"; };
DA793257265BBFB50043BA06 /* LicenseVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LicenseVC.swift; sourceTree = "<group>"; };
DA793259265BC00F0043BA06 /* LicenseCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LicenseCell.swift; sourceTree = "<group>"; };
DA81E47D265E71B500C9F732 /* OpenSourceNotices.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = OpenSourceNotices.json; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -159,6 +165,7 @@
CEA6D6EF261F8D2700715333 /* Scan.swift */,
CE891304263581D900CB92AF /* Home.swift */,
CE59D1B526428D78004EBDD6 /* Settings.swift */,
DA793257265BBFB50043BA06 /* LicenseVC.swift */,
);
path = ViewControllers;
sourceTree = "<group>";
Expand All @@ -170,6 +177,7 @@
CE13CF22262DDF810070C80E /* RoundedButton.swift */,
CEA1556A262F784E0024B7AC /* SelfSizedTableView.swift */,
CEA1556F262F79DE0024B7AC /* InfoCell.swift */,
DA793259265BC00F0043BA06 /* LicenseCell.swift */,
);
path = Components;
sourceTree = "<group>";
Expand All @@ -185,6 +193,7 @@
CEA6D6F9261F8D2900715333 /* Info.plist */,
CE345FB626446817003B457E /* Localizable.strings */,
CEC7FEE0264C819D005561BA /* context.jsonc */,
DA81E47D265E71B500C9F732 /* OpenSourceNotices.json */,
);
path = SupportingFiles;
sourceTree = "<group>";
Expand Down Expand Up @@ -388,6 +397,7 @@
CE81533C263FF8FE0030D777 /* README.md in Resources */,
CE345FB426446817003B457E /* Localizable.strings in Resources */,
CEA6D6F5261F8D2900715333 /* Assets.xcassets in Resources */,
DA81E47E265E71B500C9F732 /* OpenSourceNotices.json in Resources */,
CEC7FEE1264C819D005561BA /* context.jsonc in Resources */,
CEA6D6F3261F8D2700715333 /* Main.storyboard in Resources */,
CE345FAC26446694003B457E /* Settings.storyboard in Resources */,
Expand Down Expand Up @@ -444,7 +454,9 @@
CE1D1EF6263597A2004C8919 /* LocalData.swift in Sources */,
CED2726026398683003D47A9 /* UIFont.swift in Sources */,
CEA6D6F0261F8D2700715333 /* Scan.swift in Sources */,
DA79325A265BC00F0043BA06 /* LicenseCell.swift in Sources */,
CE13CF23262DDF810070C80E /* RoundedButton.swift in Sources */,
DA793258265BBFB50043BA06 /* LicenseVC.swift in Sources */,
CEA6D6EC261F8D2700715333 /* AppDelegate.swift in Sources */,
CE891305263581D900CB92AF /* Home.swift in Sources */,
CE59D1B626428D78004EBDD6 /* Settings.swift in Sources */,
Expand Down Expand Up @@ -652,15 +664,15 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = KH99XNF745;
DEVELOPMENT_TEAM = 9TD26M5RG8;
INFOPLIST_FILE = DGCAVerifier/SupportingFiles/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.1;
PRODUCT_BUNDLE_IDENTIFIER = "com.t-systems.DGCAVerifier.dev";
PRODUCT_BUNDLE_IDENTIFIER = "com.smart-layers.DGCAVerifier.dev";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"repositoryURL": "https://github.com/SCENEE/FloatingPanel",
"state": {
"branch": null,
"revision": "da4668aa2b8277dd8ce2741ac5c39394431400fc",
"version": "2.3.1"
"revision": "16fea625be25d9a713630a4a43cbc0778740ebf4",
"version": "2.3.0"
}
},
{
Expand Down
41 changes: 41 additions & 0 deletions DGCAVerifier/Components/LicenseCell.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
/*-
* ---license-start
* eu-digital-green-certificates / dgca-verifier-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
// DGCAVerifier
//
// Created by Paul Ballmann on 24.05.21.
//


import UIKit
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 b1a9279

Please sign in to comment.