diff --git a/core/data/src/main/java/com/wap/wapp/core/data/di/DataModule.kt b/core/data/src/main/java/com/wap/wapp/core/data/di/DataModule.kt new file mode 100644 index 00000000..2ebbd53d --- /dev/null +++ b/core/data/src/main/java/com/wap/wapp/core/data/di/DataModule.kt @@ -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 +}