[AltWidget] Initial version

This commit is contained in:
Riley Testut
2020-09-15 13:51:29 -07:00
parent 669c6f5bf4
commit 5abf7a5a11
21 changed files with 1042 additions and 0 deletions

View File

@@ -145,6 +145,8 @@ private extension DatabaseManager
{
func prepareDatabase(completionHandler: @escaping (Result<Void, Error>) -> Void)
{
guard !Bundle.isAppExtension() else { return completionHandler(.success(())) }
let context = self.persistentContainer.newBackgroundContext()
context.performAndWait {
guard let localApp = ALTApplication(fileURL: Bundle.main.bundleURL) else { return }