From e54676ac4c2a9c41176de56d02d175724eb29f7a Mon Sep 17 00:00:00 2001 From: laco-dev Date: Thu, 2 Sep 2021 20:47:44 +0900 Subject: [PATCH] =?UTF-8?q?Hilt=20=EC=A3=BC=EC=9E=85=20=EB=8C=80=EC=83=81?= =?UTF-8?q?=EA=B3=BC=20Module=EC=97=90=20=EB=8C=80=ED=95=B4=20internal=20?= =?UTF-8?q?=EC=A0=91=EA=B7=BC=EC=9E=90=20=EC=84=A0=EC=96=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/droidknights/app2021/di/AssetModule.kt | 2 +- .../main/java/com/droidknights/app2021/di/CoroutinesModule.kt | 2 +- .../java/com/droidknights/app2021/provider/CacheAssetLoader.kt | 2 +- .../main/java/com/droidknights/app2021/data/di/DataModule.kt | 2 +- .../main/java/com/droidknights/app2021/data/di/NetworkModule.kt | 2 +- .../app2021/data/repository/ConferenceRepositoryImpl.kt | 2 +- .../java/com/droidknights/app2021/detail/di/NavigatorModule.kt | 2 +- .../app2021/detail/navigation/DetailNavigatorImpl.kt | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/droidknights/app2021/di/AssetModule.kt b/app/src/main/java/com/droidknights/app2021/di/AssetModule.kt index e0a18c4..e75836e 100644 --- a/app/src/main/java/com/droidknights/app2021/di/AssetModule.kt +++ b/app/src/main/java/com/droidknights/app2021/di/AssetModule.kt @@ -9,7 +9,7 @@ import dagger.hilt.components.SingletonComponent @InstallIn(SingletonComponent::class) @Module -abstract class AssetModule { +internal abstract class AssetModule { @Binds abstract fun bindsAssetProvider( assetLoader: CacheAssetLoader diff --git a/app/src/main/java/com/droidknights/app2021/di/CoroutinesModule.kt b/app/src/main/java/com/droidknights/app2021/di/CoroutinesModule.kt index 02a64d9..760ae07 100644 --- a/app/src/main/java/com/droidknights/app2021/di/CoroutinesModule.kt +++ b/app/src/main/java/com/droidknights/app2021/di/CoroutinesModule.kt @@ -13,7 +13,7 @@ import kotlinx.coroutines.Dispatchers @InstallIn(SingletonComponent::class) @Module -object CoroutinesModule { +internal object CoroutinesModule { @DefaultDispatcher @Provides fun providesDefaultDispatcher(): CoroutineDispatcher = Dispatchers.Default diff --git a/app/src/main/java/com/droidknights/app2021/provider/CacheAssetLoader.kt b/app/src/main/java/com/droidknights/app2021/provider/CacheAssetLoader.kt index d868865..2073470 100644 --- a/app/src/main/java/com/droidknights/app2021/provider/CacheAssetLoader.kt +++ b/app/src/main/java/com/droidknights/app2021/provider/CacheAssetLoader.kt @@ -7,7 +7,7 @@ import com.droidknights.app2021.util.AssetUtil import dagger.hilt.android.qualifiers.ApplicationContext import javax.inject.Inject -class CacheAssetLoader @Inject constructor( +internal class CacheAssetLoader @Inject constructor( @ApplicationContext private val context: Context ) : AssetProvider { override suspend fun getRawSessions(): JsonRawString { diff --git a/data/src/main/java/com/droidknights/app2021/data/di/DataModule.kt b/data/src/main/java/com/droidknights/app2021/data/di/DataModule.kt index 69e0f4d..9deb315 100644 --- a/data/src/main/java/com/droidknights/app2021/data/di/DataModule.kt +++ b/data/src/main/java/com/droidknights/app2021/data/di/DataModule.kt @@ -19,7 +19,7 @@ import javax.inject.Singleton @InstallIn(SingletonComponent::class) @Module(includes = [DataModule.ApiModule::class]) -abstract class DataModule { +internal abstract class DataModule { @Binds abstract fun bindsConferenceRepository( repository: ConferenceRepositoryImpl diff --git a/data/src/main/java/com/droidknights/app2021/data/di/NetworkModule.kt b/data/src/main/java/com/droidknights/app2021/data/di/NetworkModule.kt index 9240c9a..20d892f 100644 --- a/data/src/main/java/com/droidknights/app2021/data/di/NetworkModule.kt +++ b/data/src/main/java/com/droidknights/app2021/data/di/NetworkModule.kt @@ -12,7 +12,7 @@ import javax.inject.Singleton @InstallIn(SingletonComponent::class) @Module -object NetworkModule { +internal object NetworkModule { @Provides @Singleton fun provideOkHttpClient(): OkHttpClient = diff --git a/data/src/main/java/com/droidknights/app2021/data/repository/ConferenceRepositoryImpl.kt b/data/src/main/java/com/droidknights/app2021/data/repository/ConferenceRepositoryImpl.kt index 1b43f7b..f82c8d8 100644 --- a/data/src/main/java/com/droidknights/app2021/data/repository/ConferenceRepositoryImpl.kt +++ b/data/src/main/java/com/droidknights/app2021/data/repository/ConferenceRepositoryImpl.kt @@ -10,7 +10,7 @@ import com.droidknights.app2021.shared.model.Sponsor import com.droidknights.app2021.shared.model.User import javax.inject.Inject -class ConferenceRepositoryImpl @Inject constructor( +internal class ConferenceRepositoryImpl @Inject constructor( private val conferenceApi: ConferenceApi, private val githubApi: GithubApi, private val localCacheProvider: LocalCacheProvider diff --git a/features/detail/src/main/java/com/droidknights/app2021/detail/di/NavigatorModule.kt b/features/detail/src/main/java/com/droidknights/app2021/detail/di/NavigatorModule.kt index e1965c2..8bc6883 100644 --- a/features/detail/src/main/java/com/droidknights/app2021/detail/di/NavigatorModule.kt +++ b/features/detail/src/main/java/com/droidknights/app2021/detail/di/NavigatorModule.kt @@ -9,7 +9,7 @@ import dagger.hilt.components.SingletonComponent @InstallIn(SingletonComponent::class) @Module -abstract class NavigatorModule { +internal abstract class NavigatorModule { @Binds abstract fun provideWeeklyNavigator( navigator: DetailNavigatorImpl diff --git a/features/detail/src/main/java/com/droidknights/app2021/detail/navigation/DetailNavigatorImpl.kt b/features/detail/src/main/java/com/droidknights/app2021/detail/navigation/DetailNavigatorImpl.kt index 70b15e2..66b3ce1 100644 --- a/features/detail/src/main/java/com/droidknights/app2021/detail/navigation/DetailNavigatorImpl.kt +++ b/features/detail/src/main/java/com/droidknights/app2021/detail/navigation/DetailNavigatorImpl.kt @@ -6,7 +6,7 @@ import com.droidknights.app2021.navigator.DetailNavigator import com.droidknights.app2021.shared.model.Session import javax.inject.Inject -class DetailNavigatorImpl @Inject constructor() : DetailNavigator { +internal class DetailNavigatorImpl @Inject constructor() : DetailNavigator { override fun openDetail(context: Context, session: Session) { DetailActivity.start(context, session) }