Browse Source

Merge branch 'dev' into Lamercho/treatmentview-decimal-separator

/dev/null 10 tháng trước cách đây
mục cha
commit
ca3a66d11a

+ 1 - 1
Config.xcconfig

@@ -19,7 +19,7 @@ TRIO_APP_GROUP_ID = group.org.nightscout.$(DEVELOPMENT_TEAM).trio.trio-app-group
 
 
 // The developers set the version numbers, please leave them alone
 // The developers set the version numbers, please leave them alone
 APP_VERSION = 0.5.1
 APP_VERSION = 0.5.1
-APP_DEV_VERSION = 0.5.1.4
+APP_DEV_VERSION = 0.5.1.5
 APP_BUILD_NUMBER = 1
 APP_BUILD_NUMBER = 1
 COPYRIGHT_NOTICE =
 COPYRIGHT_NOTICE =
 
 

+ 0 - 12
Trio/Resources/InfoPlist.xcstrings

@@ -457,18 +457,6 @@
         }
         }
       }
       }
     },
     },
-    "NSCalendarsFullAccessUsageDescription" : {
-      "comment" : "Privacy - Calendars Full Access Usage Description",
-      "extractionState" : "extracted_with_value",
-      "localizations" : {
-        "en" : {
-          "stringUnit" : {
-            "state" : "new",
-            "value" : "To create events with BG reading values, so that they can be viewed on Apple Watch and CarPlay"
-          }
-        }
-      }
-    },
     "NSCalendarsUsageDescription" : {
     "NSCalendarsUsageDescription" : {
       "comment" : "Privacy - Calendars Usage Description",
       "comment" : "Privacy - Calendars Usage Description",
       "extractionState" : "extracted_with_value",
       "extractionState" : "extracted_with_value",

+ 8 - 2
Trio/Sources/APS/CGM/PluginSource.swift

@@ -60,8 +60,14 @@ final class PluginSource: GlucoseSource {
             guard let self = self else { return }
             guard let self = self else { return }
             self.processQueue.async {
             self.processQueue.async {
                 guard let cgmManager = self.cgmManager else { return }
                 guard let cgmManager = self.cgmManager else { return }
-                cgmManager.fetchNewDataIfNeeded { result in
-                    promise(self.readCGMResult(readingResult: result))
+                cgmManager.fetchNewDataIfNeeded { _ in
+                    // Ignore values returned from fetchNewDataIfNeeded since
+                    // these come from share client and cause a race condition
+                    // that causes the promise to complete before a CGM value
+                    // has a chance to return. From looking at the code this should
+                    // only impact G6 since that is the only CGM manager that will
+                    // return data and only if share credentials are set
+                    promise(.success([]))
                 }
                 }
             }
             }
         }
         }

+ 0 - 3
Trio/Sources/Localizations/Main/Localizable.xcstrings

@@ -8832,9 +8832,6 @@
         }
         }
       }
       }
     },
     },
-    "%lld h" : {
-
-    },
     "%lld hr" : {
     "%lld hr" : {
       "localizations" : {
       "localizations" : {
         "bg" : {
         "bg" : {