|
|
@@ -247,14 +247,21 @@ class SettingsViewController: FormViewController {
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- +++ Section(header: "App Expiration", footer: String(expiration.description))
|
|
|
-
|
|
|
+ +++ Section(header: getAppVersion(), footer: "")
|
|
|
+
|
|
|
+ +++ Section(header: "App Expiration", footer: String(expiration.description))
|
|
|
+
|
|
|
showHideNSDetails()
|
|
|
checkNightscoutStatus()
|
|
|
}
|
|
|
|
|
|
+ func getAppVersion() -> String {
|
|
|
+ if let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String {
|
|
|
+ return "App Version: \(version)"
|
|
|
+ }
|
|
|
+ return "Version Unknown"
|
|
|
+ }
|
|
|
+
|
|
|
func updateStatusLabel(error: NightscoutUtils.NightscoutError?) {
|
|
|
if let error = error {
|
|
|
switch error {
|