Jonas Björkert 2 rokov pred
rodič
commit
5530cd0810

+ 1 - 1
LoopFollow/Info.plist

@@ -21,7 +21,7 @@
 	<key>CFBundlePackageType</key>
 	<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
 	<key>CFBundleShortVersionString</key>
-	<string>1.0</string>
+	<string>2.0.0</string>
 	<key>CFBundleVersion</key>
 	<string>1</string>
 	<key>LSApplicationCategoryType</key>

+ 11 - 4
LoopFollow/ViewControllers/SettingsViewController.swift

@@ -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 {