From 9ef517da1fa5dc93e0d8ae84811390c35f6aadd7 Mon Sep 17 00:00:00 2001 From: jeongjaino Date: Thu, 5 Oct 2023 12:31:29 +0900 Subject: [PATCH] =?UTF-8?q?[FEATURE]=20#14=20:=20Repository=20DI=20Module?= =?UTF-8?q?=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/repository/di/RepositoryModule.kt | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 core/data/src/main/java/com/wap/wapp/core/data/repository/di/RepositoryModule.kt diff --git a/core/data/src/main/java/com/wap/wapp/core/data/repository/di/RepositoryModule.kt b/core/data/src/main/java/com/wap/wapp/core/data/repository/di/RepositoryModule.kt new file mode 100644 index 00000000..c3a7865b --- /dev/null +++ b/core/data/src/main/java/com/wap/wapp/core/data/repository/di/RepositoryModule.kt @@ -0,0 +1,20 @@ +package com.wap.wapp.core.data.repository.di + +import com.wap.wapp.core.data.repository.auth.AuthRepository +import com.wap.wapp.core.data.repository.auth.AuthRepositoryImpl +import com.wap.wapp.core.network.source.auth.AuthDataSource +import dagger.Module +import dagger.Provides +import dagger.hilt.InstallIn +import dagger.hilt.components.SingletonComponent +import javax.inject.Singleton + +@Module +@InstallIn(SingletonComponent::class) +object RepositoryModule { + @Singleton + @Provides + fun providesAuthRepository( + authDataSource: AuthDataSource + ): AuthRepository = AuthRepositoryImpl(authDataSource) +} \ No newline at end of file