-
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] #15 : data module 의존성 주입 설정 구현
- Loading branch information
1 parent
53bc9a9
commit 8f5c896
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
core/data/src/main/java/com/wap/wapp/core/data/di/DataModule.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,19 @@ | ||
package com.wap.wapp.core.data.di | ||
|
||
import com.wap.wapp.core.data.repository.user.UserRepository | ||
import com.wap.wapp.core.data.repository.user.UserRepositoryImpl | ||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
abstract class DataModule { | ||
@Binds | ||
@Singleton | ||
abstract fun providesUserRepository( | ||
userRepositoryImpl: UserRepositoryImpl, | ||
): UserRepository | ||
} |