ref: rename PreviewGenerator
This commit is contained in:
@@ -22,7 +22,7 @@ private func recursiveDict(_ dictionary: [String: Any], withReplacements replace
|
||||
return output
|
||||
}
|
||||
|
||||
extension HtmlGenerator {
|
||||
extension PreviewGenerator {
|
||||
/// @return List of ATS flags.
|
||||
private func formattedAppTransportSecurity(_ appPlist: PlistDict) -> String {
|
||||
if let value = appPlist["NSAppTransportSecurity"] as? PlistDict {
|
||||
@@ -1,6 +1,6 @@
|
||||
import Foundation
|
||||
|
||||
extension HtmlGenerator {
|
||||
extension PreviewGenerator {
|
||||
/// Search for app binary and run `codesign` on it.
|
||||
private func readEntitlements(_ meta: MetaInfo, _ bundleExecutable: String?) -> Entitlements {
|
||||
guard let bundleExecutable else {
|
||||
@@ -1,6 +1,6 @@
|
||||
import Foundation
|
||||
|
||||
extension HtmlGenerator {
|
||||
extension PreviewGenerator {
|
||||
/// Calculate file / folder size.
|
||||
private func getFileSize(_ path: String) -> Int64 {
|
||||
var isDir: ObjCBool = false
|
||||
@@ -1,6 +1,6 @@
|
||||
import Foundation
|
||||
|
||||
extension HtmlGenerator {
|
||||
extension PreviewGenerator {
|
||||
/// Process meta information about the plugin. Like version and debug flag.
|
||||
mutating func procFooterInfo() {
|
||||
self.apply([
|
||||
@@ -26,7 +26,7 @@ extension MetaInfo {
|
||||
}
|
||||
|
||||
|
||||
extension HtmlGenerator {
|
||||
extension PreviewGenerator {
|
||||
|
||||
// MARK: - Certificates
|
||||
|
||||
@@ -14,7 +14,7 @@ extension MetaInfo {
|
||||
}
|
||||
|
||||
|
||||
extension HtmlGenerator {
|
||||
extension PreviewGenerator {
|
||||
/// Concatenate all (sub)genres into a comma separated list.
|
||||
private func formattedGenres(_ itunesPlist: PlistDict) -> String {
|
||||
var genres: [String] = []
|
||||
@@ -1,6 +1,6 @@
|
||||
import Foundation
|
||||
|
||||
struct HtmlGenerator {
|
||||
struct PreviewGenerator {
|
||||
var data: [String: String] = [:] // used for TAG replacements
|
||||
let meta: MetaInfo
|
||||
|
||||
Reference in New Issue
Block a user