Skip to content

Commit be89b24

Browse files
committed
ViewModelScoped
1 parent 3d901a9 commit be89b24

File tree

1 file changed

+2
-0
lines changed
  • app/src/main/java/com/hoc081098/paginationmviflow/ui/main

1 file changed

+2
-0
lines changed

app/src/main/java/com/hoc081098/paginationmviflow/ui/main/MainModule.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import dagger.Binds
44
import dagger.Module
55
import dagger.hilt.InstallIn
66
import dagger.hilt.android.components.ViewModelComponent
7+
import dagger.hilt.android.scopes.ViewModelScoped
78

89
@Module
910
@InstallIn(ViewModelComponent::class)
1011
interface MainModule {
1112
@Binds
13+
@ViewModelScoped
1214
fun provideMainInteractor(impl: MainInteractorImpl): MainContract.Interactor
1315
}

0 commit comments

Comments
 (0)