-
Notifications
You must be signed in to change notification settings - Fork 32
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
전남대 Android_최영빈_5주차 과제_step1 #62
base: yb0x00
Are you sure you want to change the base?
Conversation
|
||
class DataSearchActivity : AppCompatActivity(), RecentAdapterListener, SearchAdapterListener { | ||
private lateinit var searchViewModel: SearchViewModel | ||
private lateinit var recentViewModel: RecentViewModel | ||
private lateinit var recentViewModel: DBViewModel |
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.
변수 이름과 타입의 매칭이 잘되어있지 않은 것 같아요. 적절하게 네이밍을 변경해보세요.
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.
238a119 반영했습니다:)
피드백 감사합니다!
@@ -50,7 +52,9 @@ class DataSearchActivity : AppCompatActivity(), RecentAdapterListener, SearchAda | |||
|
|||
//ViewModel 생성 | |||
searchViewModel = ViewModelProvider(this)[SearchViewModel::class.java] | |||
recentViewModel = ViewModelProvider(this)[RecentViewModel::class.java] | |||
dbRepo = SearchHistoryRepository(this) | |||
recentViewModel = |
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.
Hilt를 통한 의존성 주입이 적용되어있지 않네요. Hilt를 통해 각 객체가 생성되어 뷰모델이 만들어지도록 변경해보세요.
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.
518a06c 에서 변경하였습니다:)
피드백 감사합니다!
import campus.tech.kakao.map.dataRepository.SearchHistoryRepository | ||
import kotlinx.coroutines.launch | ||
|
||
class DBViewModel(private val searchHistoryRepo: SearchHistoryRepository) : ViewModel() { |
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.
DBViewModel이라는 이름 대신 뷰의 추상화 개념이 보여지는 이름으로 변경해보세요.
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.
787f37b 반영했습니다:)
피드백 감사합니다!
안녕하세요 영빈님~!. 과제의 요구사항인 Hilt적용이 거의 되어있지 않은 것 같아요. 적용하신 뒤에 다시 리뷰요청 해주세요. |
@omjoonkim Hilt 적용하고 step2 PR에도 반영하였습니다 |
코드 작성하면서 어려웠던 점
멘토님이 중점적으로 리뷰해 주셨으면 하는 부분
과제 제출 프로세스를 안내받았음에도 이렇게 매번 PR이 늦어 무척 죄송한 마음입니다. 정말 죄송합니다!