Skip to content

Commit

Permalink
Hilt 주입 대상과 Module에 대해 internal 접근자 선언
Browse files Browse the repository at this point in the history
  • Loading branch information
laco-dev committed Sep 2, 2021
1 parent cd09345 commit e54676a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import kotlinx.coroutines.Dispatchers

@InstallIn(SingletonComponent::class)
@Module
object CoroutinesModule {
internal object CoroutinesModule {
@DefaultDispatcher
@Provides
fun providesDefaultDispatcher(): CoroutineDispatcher = Dispatchers.Default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import javax.inject.Singleton

@InstallIn(SingletonComponent::class)
@Module
object NetworkModule {
internal object NetworkModule {
@Provides
@Singleton
fun provideOkHttpClient(): OkHttpClient =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit e54676a

Please sign in to comment.