diff --git a/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/SwissTransferInjection.kt b/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/SwissTransferInjection.kt index 38e1994c..bb025802 100644 --- a/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/SwissTransferInjection.kt +++ b/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/SwissTransferInjection.kt @@ -24,6 +24,7 @@ import com.infomaniak.multiplatform_swisstransfer.database.controllers.UploadCon import com.infomaniak.multiplatform_swisstransfer.managers.AccountManager import com.infomaniak.multiplatform_swisstransfer.managers.AppSettingsManager import com.infomaniak.multiplatform_swisstransfer.managers.TransferManager +import com.infomaniak.multiplatform_swisstransfer.managers.UploadManager import com.infomaniak.multiplatform_swisstransfer.network.ApiClientProvider import com.infomaniak.multiplatform_swisstransfer.network.repositories.TransferRepository import com.infomaniak.multiplatform_swisstransfer.network.repositories.UploadRepository @@ -37,7 +38,10 @@ import com.infomaniak.multiplatform_swisstransfer.network.repositories.UploadRep * This class serves as the main access point. * * @property appSettingsManager A manager used to orchestrate AppSettings operations. + * @property accountManager A manager used to orchestrate Accounts operations. + * @property uploadManager A manager used to orchestrate Uploads operations. * @property transferManager A manager used to orchestrate transfer operations. + * @property sharedApiUrlCreator An utils to help use shared routes. */ class SwissTransferInjection { @@ -60,6 +64,9 @@ class SwissTransferInjection { /** A manager used to orchestrate Accounts operations. */ val accountManager by lazy { AccountManager(appSettingsController, uploadController, transferController, realmProvider) } + /** A manager used to orchestrate Uploads operations. */ + val uploadManager by lazy { UploadManager(uploadController, uploadRepository) } + /** An utils to help use shared routes */ val sharedApiUrlCreator by lazy { SharedApiUrlCreator(transferController, uploadController) } }