Settings: show build id
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
ff6a293660
commit
d0ec532bd3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue