-
Notifications
You must be signed in to change notification settings - Fork 1
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] 코스 상세 페이지 / Firebase 동적 링크로 코스 공유 구현 #326
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.
수고하셨습니다~!
} | ||
.addOnFailureListener(this) { e -> | ||
Timber.e("getDynamicLink:onFailure", e) | ||
completion(false) |
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.
고차함수를 이렇게 활용할 수 있군요! 가독성 향상된 거 같아서 좋습니다!
@@ -238,9 +242,42 @@ class CourseDetailActivity : | |||
} | |||
} | |||
|
|||
private fun sendFirebaseDynamicLink(title: String, desc: String, image: String) { | |||
val link = "https://rnnt.page.link/?courseId=$publicCourseId" |
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.
문자열 리소스 사용하거나 companion 객체 안에 상수화 시켜주는 게 좋을 거 같습니다! (오타 발생 가능성)
|
||
FirebaseDynamicLinks.getInstance().createDynamicLink() | ||
.setLink(Uri.parse(link)) | ||
.setDomainUriPrefix("https://rnnt.page.link") |
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.
여기 문자열도 상수화 시켜주면 좋을 거 같아요!
|
||
private fun shareLink(url: String) { | ||
val intent = Intent(Intent.ACTION_SEND).apply { | ||
type = "text/plain" |
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.
수고했습니다 ~ ! 👍
추후 별도 브랜치에서 피드백 반영 예정 |
📌 개요
✨ 작업 내용
✨ PR 포인트
📸 스크린샷/동영상
KakaoTalk_20240215_212115559.mp4