Skip to content

Commit

Permalink
[FEATURE] #14 : Repository DI Module 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Oct 5, 2023
1 parent 01a6687 commit 9ef517d
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 9ef517d

Please sign in to comment.