Skip to content

Commit

Permalink
#7 Add error handler hilt module
Browse files Browse the repository at this point in the history
  • Loading branch information
Heonbyeong committed Jul 12, 2022
1 parent 91df148 commit 9c4254f
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.knowing.draven.di

import com.knowing.data.base.ErrorHandlerImpl
import com.knowing.domain.base.ErrorHandler
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent

@Module
@InstallIn(SingletonComponent::class)
abstract class ErrorHandlerModule {
@Binds
abstract fun provideErrorHandler(
errorHandlerImpl: ErrorHandlerImpl
): ErrorHandler
}

0 comments on commit 9c4254f

Please sign in to comment.