Skip to content

Commit

Permalink
[mod] #5 RepositoryModule Hilt @BINDS로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
YuBeen-Park committed Dec 29, 2022
1 parent f20fdbd commit 4d2f91f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/org/sopt/sample/module/RepositoryModule.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.sopt.sample.module

import dagger.Binds
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import org.sopt.sample.data.remote.AuthService
Expand All @@ -13,7 +13,7 @@ import javax.inject.Singleton
@InstallIn(SingletonComponent::class)
class RepositoryModule {
@Singleton
@Provides
@Binds
fun bindsAuthRepository(apiInterface: AuthService): AuthRepository {
return AuthRepositoryImpl(apiInterface)
}
Expand Down

0 comments on commit 4d2f91f

Please sign in to comment.