ref: rename PreviewGenerator

This commit is contained in:
relikd
2025-11-02 16:10:08 +01:00
parent f49e184dbb
commit 802daebe56
9 changed files with 36 additions and 36 deletions

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -1,6 +1,6 @@
import Foundation
extension HtmlGenerator {
extension PreviewGenerator {
/// Calculate file / folder size.
private func getFileSize(_ path: String) -> Int64 {
var isDir: ObjCBool = false

View File

@@ -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([

View File

@@ -26,7 +26,7 @@ extension MetaInfo {
}
extension HtmlGenerator {
extension PreviewGenerator {
// MARK: - Certificates

View File

@@ -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] = []

View File

@@ -1,6 +1,6 @@
import Foundation
struct HtmlGenerator {
struct PreviewGenerator {
var data: [String: String] = [:] // used for TAG replacements
let meta: MetaInfo