Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit c7f9990a authored by Fahim M. Choudhury's avatar Fahim M. Choudhury
Browse files

refactor: make AppInstallProcessor to facade behavior

Keep the processor focused on request-to-collaborator delegation so its tests describe the public contract while the extracted components own the detailed behavior coverage.
parent 39346f17
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@

package foundation.e.apps.data.install.workmanager

import androidx.annotation.VisibleForTesting
import foundation.e.apps.data.application.data.Application
import foundation.e.apps.data.enums.ResultStatus
import foundation.e.apps.data.enums.Status
@@ -67,11 +66,6 @@ class AppInstallProcessor @Inject constructor(
        return appInstallStartCoordinator.enqueue(appInstall, isAnUpdate, isSystemApp)
    }

    @VisibleForTesting
    suspend fun canEnqueue(appInstall: AppInstall): Boolean {
        return appInstallStartCoordinator.canEnqueue(appInstall)
    }

    suspend fun processInstall(
        fusedDownloadId: String,
        isItUpdateWork: Boolean,
+42 −600

File changed.

Preview size limit exceeded, changes collapsed.