ref: rename PreviewGenerator
This commit is contained in:
17
src/Preview+Footer.swift
Normal file
17
src/Preview+Footer.swift
Normal file
@@ -0,0 +1,17 @@
|
||||
import Foundation
|
||||
|
||||
extension PreviewGenerator {
|
||||
/// Process meta information about the plugin. Like version and debug flag.
|
||||
mutating func procFooterInfo() {
|
||||
self.apply([
|
||||
"SrcAppName": "QLAppBundle",
|
||||
"SrcLinkUrl": "https://github.com/relikd/QLAppBundle",
|
||||
"SrcLinkName": "relikd/QLAppBundle",
|
||||
"BundleShortVersionString": Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "",
|
||||
"BundleVersion": Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "",
|
||||
])
|
||||
#if DEBUG
|
||||
self.data["SrcAppName"]! += " (debug)"
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user