diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-11-07 05:45:39 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-11-07 05:45:39 +0100 |
commit | d0ec532bd373f3411452027ff5c217099998d9a9 (patch) | |
tree | 84d3fe1278a228ccb0b720bff51e37303d3929a2 /WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift | |
parent | Make license consistent (diff) | |
download | wireguard-apple-d0ec532bd373f3411452027ff5c217099998d9a9.tar.xz wireguard-apple-d0ec532bd373f3411452027ff5c217099998d9a9.zip |
Settings: show build id
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift b/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift index efa54bc..5374b40 100644 --- a/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift @@ -143,7 +143,10 @@ extension SettingsTableViewController { let cell = tableView.dequeueReusableCell(withIdentifier: TunnelSettingsTableViewKeyValueCell.id, for: indexPath) as! TunnelSettingsTableViewKeyValueCell cell.key = field.rawValue 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 } else if (field == .goBackendVersion) { cell.value = WIREGUARD_GO_VERSION |