Преглед изворни кода

Fix merge errors for LOOP Apns service

codebymini пре 10 месеци
родитељ
комит
a0fde63c04

+ 1 - 9
LoopFollow/Remote/LoopAPNS/LoopAPNSService.swift

@@ -150,7 +150,6 @@ class LoopAPNSService {
             "alert": "Remote Carbs Entry: \(String(format: "%.1f", carbsAmount)) grams\nAbsorption Time: \(String(format: "%.1f", absorptionTime)) hours",
         ] as [String: Any]
 
-
         /* Let's wait with this until we have an encryption solution for LRC
          if let returnInfo = createReturnNotificationInfo() {
              finalPayload["return_notification"] = returnInfo
@@ -164,7 +163,6 @@ class LoopAPNSService {
         // Log carbs entry attempt
         LogManager.shared.log(category: .apns, message: "Sending carbs: \(String(format: "%.1f", carbsAmount))g, absorption: \(String(format: "%.1f", absorptionTime))h")
 
-
         sendAPNSNotification(
             deviceToken: deviceToken,
             bundleIdentifier: bundleIdentifier,
@@ -210,24 +208,18 @@ class LoopAPNSService {
             "alert": "Remote Bolus Entry: \(String(format: "%.2f", bolusAmount)) U",
         ] as [String: Any]
 
-         /* Let's wait with this until we have an encryption solution for LRC
+        /* Let's wait with this until we have an encryption solution for LRC
          if let returnInfo = createReturnNotificationInfo() {
              finalPayload["return_notification"] = returnInfo
          }
          */
 
-        // Log the exact carbs amount for debugging precision issues
-        LogManager.shared.log(category: .apns, message: "Carbs amount - Raw: \(payload.carbsAmount ?? 0.0), Formatted: \(String(format: "%.1f", carbsAmount)), JSON: \(carbsAmount)")
-        LogManager.shared.log(category: .apns, message: "Absorption time - Raw: \(payload.absorptionTime ?? 3.0), Formatted: \(String(format: "%.1f", absorptionTime)), JSON: \(absorptionTime)")
-
-
         // Log the exact bolus amount for debugging precision issues
         LogManager.shared.log(category: .apns, message: "Bolus amount - Raw: \(payload.bolusAmount ?? 0.0), Formatted: \(String(format: "%.2f", bolusAmount)), JSON: \(bolusAmount)")
 
         // Log bolus entry attempt
         LogManager.shared.log(category: .apns, message: "Sending bolus: \(String(format: "%.2f", bolusAmount))U")
 
-
         sendAPNSNotification(
             deviceToken: deviceToken,
             bundleIdentifier: bundleIdentifier,

+ 2 - 2
LoopFollow/Remote/Settings/RemoteSettingsViewModel.swift

@@ -33,8 +33,8 @@ class RemoteSettingsViewModel: ObservableObject {
     @Published var productionEnvironment: Bool
     @Published var isShowingLoopAPNSScanner: Bool = false
     @Published var loopAPNSErrorMessage: String?
-  
-      // MARK: - QR Code Sharing Properties
+
+    // MARK: - QR Code Sharing Properties
 
     @Published var isShowingQRCodeScanner: Bool = false
     @Published var isShowingQRCodeDisplay: Bool = false