ref: introduce CLASS_VISIBLE
This commit is contained in:
@@ -91,7 +91,7 @@ extension PreviewGenerator {
|
|||||||
"AppBuildVer": appPlist["CFBundleVersion"] as? String ?? "",
|
"AppBuildVer": appPlist["CFBundleVersion"] as? String ?? "",
|
||||||
"AppId": appPlist["CFBundleIdentifier"] as? String ?? "",
|
"AppId": appPlist["CFBundleIdentifier"] as? String ?? "",
|
||||||
|
|
||||||
"AppExtensionTypeHidden": extensionType != nil ? "" : CLASS_HIDDEN,
|
"AppExtensionTypeHidden": extensionType != nil ? CLASS_VISIBLE : CLASS_HIDDEN,
|
||||||
"AppExtensionType": extensionType ?? "",
|
"AppExtensionType": extensionType ?? "",
|
||||||
|
|
||||||
"AppDeviceFamily": deviceFamilyList(appPlist, isOSX: isOSX),
|
"AppDeviceFamily": deviceFamilyList(appPlist, isOSX: isOSX),
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ extension PreviewGenerator {
|
|||||||
entitlements.applyFallbackIfNeeded(provisionPlist?["Entitlements"] as? PlistDict)
|
entitlements.applyFallbackIfNeeded(provisionPlist?["Entitlements"] as? PlistDict)
|
||||||
|
|
||||||
self.apply([
|
self.apply([
|
||||||
"EntitlementsWarningHidden": entitlements.hasError ? "" : CLASS_HIDDEN,
|
"EntitlementsWarningHidden": entitlements.hasError ? CLASS_VISIBLE : CLASS_HIDDEN,
|
||||||
"EntitlementsDict": entitlements.html ?? "No Entitlements",
|
"EntitlementsDict": entitlements.html ?? "No Entitlements",
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ extension PreviewGenerator {
|
|||||||
let certs = getCertificateList(provisionPlist)
|
let certs = getCertificateList(provisionPlist)
|
||||||
|
|
||||||
self.apply([
|
self.apply([
|
||||||
"ProvisionHidden": "",
|
"ProvisionHidden": CLASS_VISIBLE,
|
||||||
"ProvisionProfileName": provisionPlist["Name"] as? String ?? "",
|
"ProvisionProfileName": provisionPlist["Name"] as? String ?? "",
|
||||||
"ProvisionProfileId": provisionPlist["UUID"] as? String ?? "",
|
"ProvisionProfileId": provisionPlist["UUID"] as? String ?? "",
|
||||||
"ProvisionTeamName": provisionPlist["TeamName"] as? String ?? "<em>Team name not available</em>",
|
"ProvisionTeamName": provisionPlist["TeamName"] as? String ?? "<em>Team name not available</em>",
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ extension PreviewGenerator {
|
|||||||
name = appleId
|
name = appleId
|
||||||
}
|
}
|
||||||
self.apply([
|
self.apply([
|
||||||
"iTunesHidden": "",
|
"iTunesHidden": CLASS_VISIBLE,
|
||||||
"iTunesId": (itunesPlist["itemId"] as? Int)?.description ?? "",
|
"iTunesId": (itunesPlist["itemId"] as? Int)?.description ?? "",
|
||||||
"iTunesName": itunesPlist["itemName"] as? String ?? "",
|
"iTunesName": itunesPlist["itemName"] as? String ?? "",
|
||||||
"iTunesGenres": formattedGenres(itunesPlist),
|
"iTunesGenres": formattedGenres(itunesPlist),
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
let CLASS_HIDDEN = "hiddenDiv"
|
let CLASS_HIDDEN = "hiddenDiv"
|
||||||
|
let CLASS_VISIBLE = ""
|
||||||
|
|
||||||
struct PreviewGenerator {
|
struct PreviewGenerator {
|
||||||
var data: [String: String] = [:] // used for TAG replacements
|
var data: [String: String] = [:] // used for TAG replacements
|
||||||
|
|||||||
Reference in New Issue
Block a user