mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-14 17:23:25 +01:00
App builds in xcodeproj (todo widget)
This commit is contained in:
@@ -9,14 +9,17 @@
|
||||
import Intents
|
||||
import Shared
|
||||
import SideStoreCore
|
||||
import os.log
|
||||
|
||||
@available(iOS 14, *)
|
||||
public class ViewAppIntentHandler: NSObject, ViewAppIntentHandling {
|
||||
public func provideAppOptionsCollection(for _: ViewAppIntent, with completion: @escaping (INObjectCollection<App>?, Error?) -> Void) {
|
||||
public func provideAppOptionsCollection(for intent: ViewAppIntent, with completion: @escaping (INObjectCollection<App>?, Error?) -> Void) {
|
||||
DatabaseManager.shared.start { error in
|
||||
if let error = error {
|
||||
print("Error starting extension:", error)
|
||||
}
|
||||
os_log("Error starting extension: %@", type: .error , error.localizedDescription)
|
||||
} else {
|
||||
os_log("Started extension: %@", type: .info , intent.debugDescription)
|
||||
}
|
||||
|
||||
DatabaseManager.shared.persistentContainer.performBackgroundTask { context in
|
||||
let apps = InstalledApp.all(in: context).map { installedApp in
|
||||
|
||||
Reference in New Issue
Block a user