-
Notifications
You must be signed in to change notification settings - Fork 0
feat: 채팅방 - 채팅방 공용 컴포넌트 구현 및 매니저 채팅 기능 구현 완료 #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8d68f28
9653a8a
2d2a852
8c28b66
214a76e
60d58c6
36739e6
1c44759
3b12a95
dfa2f3a
cb465c0
e5b7e24
b2920d0
bd4d029
0cf32b4
5d5641b
2544d67
10beb9e
e6f562b
5ddb2a6
2a3bd2f
2012b78
b057d4c
7dea144
d1dcd35
c74ffa7
f09a309
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,49 @@ | ||
| package kr.co.call.data.di | ||
|
|
||
| import dagger.Module | ||
| import dagger.Provides | ||
| import dagger.hilt.InstallIn | ||
| import dagger.hilt.components.SingletonComponent | ||
| import kr.co.call.domain.usecase.chatting.FirstManagerChatUseCase | ||
| import kr.co.call.domain.usecase.chatting.WantToContactManagerUseCase | ||
| import kr.co.call.domain.usecase.chatting.WantToGetCallScheduleUseCase | ||
| import kr.co.call.domain.usecase.chatting.WantToUpdatePartnerInfoUseCase | ||
| import kr.co.call.domain.usecase.chatting.WantToUpdateRecordUseCase | ||
| import javax.inject.Singleton | ||
|
|
||
| @Module | ||
| @InstallIn(SingletonComponent::class) | ||
| object UseCaseModule { | ||
|
|
||
| // ======== 매니저 채팅 관련 ========= | ||
| @Provides | ||
| @Singleton | ||
| fun provideFirstManagerChatUseCase(): FirstManagerChatUseCase { | ||
| return FirstManagerChatUseCase() | ||
| } | ||
|
|
||
| @Provides | ||
| @Singleton | ||
| fun provideWantToContactManagerUseCase(): WantToContactManagerUseCase { | ||
| return WantToContactManagerUseCase() | ||
| } | ||
|
|
||
| @Provides | ||
| @Singleton | ||
| fun provideWantToGetCallScheduleUseCase(): WantToGetCallScheduleUseCase { | ||
| return WantToGetCallScheduleUseCase() | ||
| } | ||
|
|
||
| @Provides | ||
| @Singleton | ||
| fun provideWantToUpdatePartnerInfoUseCase(): WantToUpdatePartnerInfoUseCase { | ||
| return WantToUpdatePartnerInfoUseCase() | ||
| } | ||
|
|
||
| @Provides | ||
| @Singleton | ||
| fun provideWantToUpdateRecordUseCase(): WantToUpdateRecordUseCase { | ||
| return WantToUpdateRecordUseCase() | ||
| } | ||
|
|
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: call-from-ai/CallFromAi_Android
Length of output: 1321
core/data/src/main/java/kr/co/call/data/di/UseCaseModule.kt의 중복 바인딩을 제거하세요.
FirstManagerChatUseCase,WantToContactManagerUseCase,WantToGetCallScheduleUseCase,WantToUpdatePartnerInfoUseCase,WantToUpdateRecordUseCase는 모두@Inject constructor가 있으므로, 같은 타입을@Provides로 다시 등록하면 Dagger/Hilt에서 컴파일이 실패합니다. 이 provider들은 삭제하고 생성자 주입만 사용하세요.🤖 Prompt for AI Agents