Skip to content

Conversation

@KRMKGOLD
Copy link
Member

@KRMKGOLD KRMKGOLD commented Aug 4, 2021

Template 값들을 V2 기준에 맞게 변경 했습니다.

layoutTemplate 는 빌드시 문제되는 내용 제거했습니다.

@KRMKGOLD KRMKGOLD requested a review from kimdohun0104 August 4, 2021 08:49
override fun setBindingVariables() {
binding.viewModel = viewModel
}
override val viewModel: $NAME$ViewModel by sharedViewModel()
Copy link
Contributor

Choose a reason for hiding this comment

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

이 부분같은 경우엔 sharedViewModel를 사용하지 않는 케이스일 경우가 더 많을 것 같아서,
그냥 비워둔채로 나두어도 괜찮을 것 같습니다.
템플릿으론 생성만 해주고, 이런 부분은 상세 구현쪽이라고 생각하는 것이 좋을 것 같습니다.
Activity같은 경우는 거의 고정이라 잘 모르겠지만, fragment는 비우는 것이 더 좋을 것 같습니다.

Copy link
Member Author

@KRMKGOLD KRMKGOLD Aug 4, 2021

Choose a reason for hiding this comment

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

근데 Fragment으로 설정하고 생성하면 일단 ViewModel도 같이 생성하는 거 아닌가요
일단 기본적으로 템플릿인데 ViewModel 파일은 생성되고, sharedViewModel() 과 import 문 등을 직접 추가해야 되는 경우는 오히려 발생하면 안된다고 생각합니다. 차라리 지우는 형태로 가는 것이 맞다고 봐요.

Copy link
Contributor

Choose a reason for hiding this comment

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

그러네요 그럼 유지하는 것으로 approve 하겠습니다

@KRMKGOLD KRMKGOLD merged commit 28cbef2 into FindaDeveloper:main Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants