Explorar o código

Merge pull request #65 from dnzxy/rename_openiaps

Replace 'openiaps' with 'trio' in TrioApp.swift and Info.plist
Deniz Cengiz hai 1 ano
pai
achega
9573d6cf99
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  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)