Skip to content

Commit

Permalink
[FEATURE] #15 : data module 의존성 주입 설정 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Oct 10, 2023
1 parent 53bc9a9 commit 8f5c896
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions core/data/src/main/java/com/wap/wapp/core/data/di/DataModule.kt
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
}

0 comments on commit 8f5c896

Please sign in to comment.