Settings: show build id

This commit is contained in:
Jason A. Donenfeld 2018-11-07 05:45:39 +01:00
parent bfab65348c
commit f8f19ef3d7
1 changed files with 4 additions and 1 deletions

View File

@ -143,7 +143,10 @@ extension SettingsTableViewController {
let cell = tableView.dequeueReusableCell(withIdentifier: TunnelSettingsTableViewKeyValueCell.id, for: indexPath) as! TunnelSettingsTableViewKeyValueCell let cell = tableView.dequeueReusableCell(withIdentifier: TunnelSettingsTableViewKeyValueCell.id, for: indexPath) as! TunnelSettingsTableViewKeyValueCell
cell.key = field.rawValue cell.key = field.rawValue
if (field == .iosAppVersion) { if (field == .iosAppVersion) {
let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "Unknown version" var appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "Unknown version"
if let appBuild = Bundle.main.infoDictionary?["CFBundleVersion"] as? String {
appVersion += " (\(appBuild))"
}
cell.value = appVersion cell.value = appVersion
} else if (field == .goBackendVersion) { } else if (field == .goBackendVersion) {
cell.value = WIREGUARD_GO_VERSION cell.value = WIREGUARD_GO_VERSION