Rewrite downloader to use delegate and download item

This commit is contained in:
ronaldheft
2022-08-06 10:11:46 -04:00
parent 33041608f8
commit d5d65e244b
6 changed files with 222 additions and 123 deletions
+4
View File
@@ -49,6 +49,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
Realm.registerRealmables(LocalFile.self)
Realm.registerRealmables(LocalMediaProgress.self)
// Download item
Realm.registerRealmables(DownloadItem.self)
Realm.registerRealmables(DownloadItemPart.self)
return true
}