Skip to content
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

내용 작성 화면 Compose 전환 #170

Merged
merged 6 commits into from
Jul 24, 2023

Conversation

TTC1018
Copy link
Collaborator

@TTC1018 TTC1018 commented Jul 2, 2023

PR 내용

  • UploadFilmViewModel로 관리하던 데이터들 대부분 Flow로 리팩토링
  • ExoPlayer -> Compose에서 AndroidView로 구현 및 Lifecycle에 맞게 작동하도록 구현
  • 화면 전환(액티비티 이동) 함수는 웬만하면 UploadFilmComposeActivity에서 실행하도록 구현
  • 일기 작성할 때 기존에 인스타그램 벤치마킹 했던 것 처럼 SpannableString과 최대한 유사하게 보이도록 구현 (외부 라이브러리 활용)

merge시 고려사항

  • 음소거 Lottie 버튼 raw 폴더에 추가 등록했는데 둘 중에 하나 삭제해야 할듯
  • primaryVariant 색상 blackBlur로 변경했음

고민 중인 부분

  • LaunchedEffect 사용이 적절한 상황이 언젠지 정확히는 모르겠음

Resolve: #161

@TTC1018 TTC1018 added the migration Tech Stack 전환 label Jul 2, 2023
@TTC1018 TTC1018 self-assigned this Jul 2, 2023
Comment on lines +182 to +191
@Composable
fun UploadFilmTopArea(
writingState: Boolean,
muteState: Boolean,
backAction: () -> Unit,
uploadAction: () -> Unit,
muteAction: () -> Unit,
editTextAction: () -> Unit,
modifier: Modifier = Modifier
) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

호이스팅 너무 깔끔하네... 많이 배웁니다


Box(modifier = modifier) {
val muteAnimatable = rememberLottieAnimatable()
LaunchedEffect(muteState) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

muteState 랑 LottieClipSpec.Progress를 stateHolder로 묶어서 쓰면 관리하기도 좋고 유연성도 높아지더라고.

괜찮은지 확인 한번 해줘!!

37a4d29

@junhyeongleeee junhyeongleeee merged commit e94789f into boostcampwm-2022:develop-compose Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migration Tech Stack 전환
Projects
Status: ✅Issue Done
Development

Successfully merging this pull request may close these issues.

3 participants