-
Notifications
You must be signed in to change notification settings - Fork 0
[2023.06.13.정호섭] SSO-Login 기능 구현 #7
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
base: TDH-6-develop
Are you sure you want to change the base?
Conversation
|
질문 및 건의사항이 있습니다!
|
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.
setOnClickListeners는 따로 안쓰셔도 됩니다 :) BaseActivity에 있는걸 써주세요 ~!
kailloop
left a comment
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.
MainActivity의 getIntent 메소드 추가
getIntent(context: Context) = Intent(context, MainActivity::class.java) 해당 코드는 왜 쓰신걸까용..?
|
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.
팩토리 패턴에 대한 추가 질의사항이 있습니다!
- 팩토리 패턴 사용 이유가 수정 사항에 대한 제한을 열린 확장성을 가진 OCP 원칙을 지키기 위해서인데 해당 사항은 팩토리 패턴이라기 보다는 Singleton 패턴의 장점을 살리기위해 작성하신걸로 보입니다! 일단 의도는 그래 보여서 혹시 제가 아는 팩토리 패턴이랑 다른 것 같아 조심스레 여쭤봅니다..!
- 해당 메소드를 보시면 함수를 실행 시킬 때 마다 new Intent()를 생성해서 return 해주는 방식으로 저는 보입니다..! 그래서, 차라리
companion object { val mainIntent : Intent? = null fun getIntent(): Intent { return if (mainIntent != null) mainIntent else mainIntent = Intent(this, MainActivity:class) } }
해당 코드로 바뀌는게 좋지 않을까요?
Kakao, Google 로그인 기능 구현했습니다.