From 717d9aea3dc4464122d56a7f73802c3476470756 Mon Sep 17 00:00:00 2001 From: vrexpert Date: Sun, 28 Apr 2024 11:39:04 +0900 Subject: [PATCH] =?UTF-8?q?feat(DataSourceModule):=20=ED=86=A0=ED=81=B0=20?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20=EC=A0=80?= =?UTF-8?q?=EC=9E=A5=EC=86=8C=20=EC=A0=95=EC=9D=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/di/singletonscope/DataSourceModule.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 android/festago/data/src/main/java/com/festago/festago/data/di/singletonscope/DataSourceModule.kt diff --git a/android/festago/data/src/main/java/com/festago/festago/data/di/singletonscope/DataSourceModule.kt b/android/festago/data/src/main/java/com/festago/festago/data/di/singletonscope/DataSourceModule.kt new file mode 100644 index 000000000..a8d3879ac --- /dev/null +++ b/android/festago/data/src/main/java/com/festago/festago/data/di/singletonscope/DataSourceModule.kt @@ -0,0 +1,16 @@ +package com.festago.festago.data.di.singletonscope + +import com.festago.festago.data.datasource.TokenDataSource +import com.festago.festago.data.datasource.TokenLocalDataSource +import dagger.Binds +import dagger.Module +import dagger.hilt.InstallIn +import dagger.hilt.components.SingletonComponent + +@Module +@InstallIn(SingletonComponent::class) +interface DataSourceModule { + + @Binds + fun bindsTokenDataSource(localDataSource: TokenLocalDataSource): TokenDataSource +}