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

Merge branch 'watch' of github.com:polscm32/Trio-dev into watch

Deniz Cengiz пре 1 година
родитељ
комит
2d1e3d5200
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 2 2
      Trio/Resources/Info.plist
  2. 2 2
      Trio/Sources/Application/TrioApp.swift

+ 2 - 2
Trio/Resources/Info.plist

@@ -7,7 +7,7 @@
 	<key>BGTaskSchedulerPermittedIdentifiers</key>
 	<array>
 		<string>$(PRODUCT_BUNDLE_IDENTIFIER).background-task.critical-event-log</string>
-		<string>com.openiaps.cleanup</string>
+		<string>com.trio.cleanup</string>
 	</array>
 	<key>CBBundleDisplayName</key>
 	<string>$(APP_DISPLAY_NAME)</string>
@@ -103,7 +103,7 @@
 		<string>bluetooth-peripheral</string>
 		<string>fetch</string>
 		<string>processing</string>
-                <string>remote-notification</string>
+		<string>remote-notification</string>
 	</array>
 	<key>UIFileSharingEnabled</key>
 	<true/>

+ 2 - 2
Trio/Sources/Application/TrioApp.swift

@@ -92,7 +92,7 @@ import Swinject
                 coreDataStack.save()
             }
         }
-        .backgroundTask(.appRefresh("com.openiaps.cleanup")) {
+        .backgroundTask(.appRefresh("com.trio.cleanup")) {
             await scheduleDatabaseCleaning()
             await cleanupOldData()
         }
@@ -120,7 +120,7 @@ import Swinject
     }
 
     func scheduleDatabaseCleaning() {
-        let request = BGAppRefreshTaskRequest(identifier: "com.openiaps.cleanup")
+        let request = BGAppRefreshTaskRequest(identifier: "com.trio.cleanup")
         request.earliestBeginDate = .now.addingTimeInterval(7 * 24 * 60 * 60) // 7 days
         do {
             try BGTaskScheduler.shared.submit(request)