From d0ec532bd373f3411452027ff5c217099998d9a9 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 7 Nov 2018 05:45:39 +0100 Subject: [PATCH] Settings: show build id Signed-off-by: Jason A. Donenfeld --- WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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