WIP Android DownloadService

This commit is contained in:
Syer10
2022-03-03 17:08:14 -05:00
parent 519b3d0ca8
commit fa9dea84be
19 changed files with 566 additions and 101 deletions

View File

@@ -10,7 +10,6 @@ import android.content.Context
import ca.gosyer.core.di.AppScope
import ca.gosyer.core.prefs.PreferenceStoreFactory
import ca.gosyer.data.catalog.CatalogPreferences
import ca.gosyer.data.download.DownloadService
import ca.gosyer.data.extension.ExtensionPreferences
import ca.gosyer.data.library.LibraryPreferences
import ca.gosyer.data.library.LibraryUpdateService
@@ -37,8 +36,6 @@ actual abstract class DataComponent(
protected abstract val httpProvider: HttpProvider
abstract val downloadService: DownloadService
abstract val libraryUpdateService: LibraryUpdateService
abstract val migrations: Migrations
@@ -115,11 +112,6 @@ actual abstract class DataComponent(
protected val libraryUpdateServiceFactory: LibraryUpdateService
get() = LibraryUpdateService(serverPreferences, http)
@get:AppScope
@get:Provides
protected val downloadServiceFactory: DownloadService
get() = DownloadService(serverPreferences, http)
@get:AppScope
@get:Provides
protected val migrationsFactory: Migrations