feat: make appPlist optional (again)

This commit is contained in:
relikd
2025-11-05 18:36:45 +01:00
parent af9c398571
commit f38c1f802f
4 changed files with 10 additions and 8 deletions

View File

@@ -78,7 +78,10 @@ extension PreviewGenerator {
}
/// Process info stored in `Info.plist`
mutating func procAppInfo(_ appPlist: PlistDict, isOSX: Bool) {
mutating func procAppInfo(_ appPlist: PlistDict?, isOSX: Bool) {
guard let appPlist else {
return
}
let minVersion = appPlist[isOSX ? "LSMinimumSystemVersion" : "MinimumOSVersion"] as? String ?? ""
let extensionType = (appPlist["NSExtension"] as? PlistDict)?["NSExtensionPointIdentifier"] as? String