Skip to content
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

feat/#18-DI 라이브러리 Koin에서 Dagger Hilt로 Migration #27

Conversation

bamin0422
Copy link
Collaborator

🧨이슈

🔍 상세 내용 (해결 내용)

  • Dagger-Hilt 라이브러리 추가 및 구성

💡 참고자료 및 공유할만한 자료 (선택)

❕후속 진행 이슈

@bamin0422 bamin0422 added the 설계 프로젝트 설계 label Sep 24, 2023
@bamin0422 bamin0422 self-assigned this Sep 24, 2023
@bamin0422 bamin0422 changed the base branch from main to develop September 24, 2023 08:50

open class BaseViewModel : ViewModel(), KoinComponent {
@HiltViewModel
open class BaseViewModel @Inject constructor() : ViewModel() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BaseVieModel에는 따로 HiltViewModel을 선언할 필요는 없을거 같습니다.
추후에 @Inject 를 사용하는 viewmodel 에서 재선언해서 사용하게 되니, 따로 어노테이션은 없어도 될거 같네요~

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 그러면 각각 ViewModel에서 따로 사용하는 거군요 감사합니다~ 수정할께요!

@bamin0422 bamin0422 merged commit 23ecc59 into develop Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
설계 프로젝트 설계
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants