Skip to content

[FEAT] 코스 상세 페이지 / Firebase 동적 링크로 코스 공유 구현#326

Merged
unam98 merged 3 commits intodevelopfrom
feature/feat-dynamic-link
Feb 16, 2024
Merged

[FEAT] 코스 상세 페이지 / Firebase 동적 링크로 코스 공유 구현#326
unam98 merged 3 commits intodevelopfrom
feature/feat-dynamic-link

Conversation

@unam98
Copy link
Copy Markdown
Collaborator

@unam98 unam98 commented Feb 15, 2024

📌 개요

✨ 작업 내용

  • interceptor 토큰 clear 로직 수정
  • 카카오 sdk 공유 코드 제거
  • 파이어베이스 동적 링크로 코스 공유 기능 구현 (iOS 호환 / 앱 미설치 시 플레이스토어 이동 테스트 완료)

✨ PR 포인트

📸 스크린샷/동영상

KakaoTalk_20240215_212115559.mp4

@unam98 unam98 added 우남 🐼 우남 담당 FEAT ✨ 새로운 기능 구현 labels Feb 15, 2024
@unam98 unam98 self-assigned this Feb 15, 2024
Copy link
Copy Markdown
Member

@leeeha leeeha left a 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)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

고차함수를 이렇게 활용할 수 있군요! 가독성 향상된 거 같아서 좋습니다!

}

private fun sendFirebaseDynamicLink(title: String, desc: String, image: String) {
val link = "https://rnnt.page.link/?courseId=$publicCourseId"
Copy link
Copy Markdown
Member

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")
Copy link
Copy Markdown
Member

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"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

여기도 상수화 시켜주면 더욱 좋겠네요 :)

Copy link
Copy Markdown
Collaborator

@sxunea sxunea left a comment

Choose a reason for hiding this comment

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

수고했습니다 ~ ! 👍

@unam98
Copy link
Copy Markdown
Collaborator Author

unam98 commented Feb 16, 2024

추후 별도 브랜치에서 피드백 반영 예정

@unam98 unam98 merged commit 7eff342 into develop Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FEAT ✨ 새로운 기능 구현 우남 🐼 우남 담당

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 코스 상세페이지 / 카톡 공유 (다이나믹링크)

3 participants