From 2bf2804910b2b8f98ebb3c40284b0c0b6950f7cc Mon Sep 17 00:00:00 2001 From: hyeumm <20221159@sungshin.ac.kr> Date: Fri, 6 Dec 2024 22:47:48 +0900 Subject: [PATCH] chore #13: RepositoryModule --- .../org/sopt/and/data/di/RepositoryModule.kt | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/sopt/and/data/di/RepositoryModule.kt b/app/src/main/java/org/sopt/and/data/di/RepositoryModule.kt index fe12ba9..16d6588 100644 --- a/app/src/main/java/org/sopt/and/data/di/RepositoryModule.kt +++ b/app/src/main/java/org/sopt/and/data/di/RepositoryModule.kt @@ -4,8 +4,12 @@ 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 @@ -13,7 +17,19 @@ import javax.inject.Singleton 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 }