-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] #14 : Repository DI Module 구현
- Loading branch information
1 parent
01a6687
commit 9ef517d
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
core/data/src/main/java/com/wap/wapp/core/data/repository/di/RepositoryModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |