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

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

refactor: rename DefaultAppEventDispatcher to AppEventDispatcherImpl

parent 3d80f2e0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ import dagger.hilt.components.SingletonComponent
import foundation.e.apps.data.install.core.helper.InstallationCompletionHandler
import foundation.e.apps.data.install.download.DownloadManagerUtils
import foundation.e.apps.data.install.wrapper.AppEventDispatcher
import foundation.e.apps.data.install.wrapper.DefaultAppEventDispatcher
import foundation.e.apps.data.install.wrapper.AppEventDispatcherImpl
import foundation.e.apps.data.install.wrapper.DeviceNetworkStatusChecker
import foundation.e.apps.data.install.wrapper.ParentalControlAuthGatewayImpl
import foundation.e.apps.data.install.wrapper.StorageSpaceCheckerImpl
@@ -46,7 +46,7 @@ interface AppInstallationModule {

    @Binds
    @Singleton
    fun bindAppEventDispatcher(dispatcher: DefaultAppEventDispatcher): AppEventDispatcher
    fun bindAppEventDispatcher(dispatcher: AppEventDispatcherImpl): AppEventDispatcher

    @Binds
    @Singleton
+2 −2
Original line number Diff line number Diff line
@@ -22,11 +22,11 @@ import foundation.e.apps.data.event.AppEvent
import foundation.e.apps.data.event.EventBus
import javax.inject.Inject

interface AppEventDispatcher {
fun interface AppEventDispatcher {
    suspend fun dispatch(event: AppEvent)
}

class DefaultAppEventDispatcher @Inject constructor() : AppEventDispatcher {
class AppEventDispatcherImpl @Inject constructor() : AppEventDispatcher {
    override suspend fun dispatch(event: AppEvent) {
        EventBus.invokeEvent(event)
    }