Skip to content

Commit

Permalink
chore #13: RepositoryModule
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeeum committed Dec 6, 2024
1 parent 92f4d78 commit 2bf2804
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions app/src/main/java/org/sopt/and/data/di/RepositoryModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,32 @@ import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import org.sopt.and.data.repositoryimpl.WavveRepositoryImpl
import org.sopt.and.domain.repository.WavveRepository
import org.sopt.and.data.repositoryimpl.MyRepositoryImpl
import org.sopt.and.data.repositoryimpl.SignInRepositoryImpl
import org.sopt.and.data.repositoryimpl.SignUpRepositoryImpl
import org.sopt.and.domain.repository.MyRepository
import org.sopt.and.domain.repository.SignInRepository
import org.sopt.and.domain.repository.SignUpRepository
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
internal abstract class RepositoryModule {
@Binds
@Singleton
abstract fun bindsRepository(
myRepositoryImpl: WavveRepositoryImpl
): WavveRepository
abstract fun bindsSignInRepository(
signInRepositoryImpl: SignInRepositoryImpl
): SignInRepository

@Binds
@Singleton
abstract fun bindsSignUpRepository(
signUpRepositoryImpl: SignUpRepositoryImpl
): SignUpRepository

@Binds
@Singleton
abstract fun bindsMyRepository(
myRepositoryImpl: MyRepositoryImpl
): MyRepository
}

0 comments on commit 2bf2804

Please sign in to comment.