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

음원 파일 업로드 (유저 입력) #103

Merged
merged 4 commits into from
Nov 16, 2023
Merged

Conversation

2taezeat
Copy link
Collaborator

@2taezeat 2taezeat commented Nov 16, 2023

Issue

Overview

  • 현재 UI와 요구사항이, 모든 MatiralToolbar 에서 navigationIcon이 있다면, 모든 것이 뒤로가기여서 binding�Apater를 써서, 모든 MatiralToolbar 공통으로 속성을 적용할 수 있다면 편할거라 생각하고 구현했는데,
    • bindingApater에 인자로 최소 하나 이상 받아야 하는 제약때문에 dummy 파라미터가 들어가는데, 이 부분이 어색하네요 😭

Screenshot

@2taezeat 2taezeat added ✨ feat 기능 개발 🤖 android android labels Nov 16, 2023
@2taezeat 2taezeat added this to the 🆙 upload milestone Nov 16, 2023
@2taezeat 2taezeat self-assigned this Nov 16, 2023
@2taezeat 2taezeat linked an issue Nov 16, 2023 that may be closed by this pull request
@2taezeat 2taezeat changed the title Android/feature/upload 음원 파일 업로드 (유저 입력) Nov 16, 2023
Copy link

github-actions bot commented Nov 16, 2023

Test Results

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 16ea13f.

♻️ This comment has been updated with latest results.

android/app/src/main/AndroidManifest.xml Show resolved Hide resolved
Comment on lines 2 to 7
<resources>
<string-array name="genre_items">
<item>장르를 선택해 주세요.</item>
<item>genre1</item>
<item>genre2</item>
<item>genre3</item>
Copy link
Member

Choose a reason for hiding this comment

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

장르는 서버에서 내려주기로해서 이 배열은 없어도 될 거 같아

Copy link
Collaborator Author

@2taezeat 2taezeat Nov 16, 2023

Choose a reason for hiding this comment

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

서버 api 가 아직 없는 상황에서, 아무것도 선택안한 경우, 버튼 비활성화를 고려해서 넣었습니다~

Copy link
Member

Choose a reason for hiding this comment

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

서버 api가 없는 경우면 viewModel 에서 임시로 dummy 리스트를 들고있게 구현하면 나중에 더 수정하기 쉬워져

@HamBP HamBP mentioned this pull request Nov 16, 2023
@2taezeat 2taezeat merged commit 1bc218b into develop Nov 16, 2023
2 checks passed
Comment on lines +28 to +39
private fun observeMusicTitle() {
uploadedMusicTitle.onEach {
_isUploadEnable.value = uploadedMusicGenrePosition.value != 0 && it.isNotEmpty()
}.launchIn(viewModelScope)
}


private fun observeGenrePosition() {
uploadedMusicGenrePosition.onEach {
_isUploadEnable.value = it != 0 && uploadedMusicTitle.value.isNotEmpty()
}.launchIn(viewModelScope)
}
Copy link
Member

Choose a reason for hiding this comment

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

이 부분은 flow의 combine을 이용해서 해결하는 게 더 깔끔할 거 같아

Copy link
Member

Choose a reason for hiding this comment

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

혹시 0번 포지션은 "선택 없음"이 아니라 "디폴트"값이 아닐까?

Copy link
Collaborator Author

@2taezeat 2taezeat Nov 16, 2023

Choose a reason for hiding this comment

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

combine 해볼게요~

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

선택하지 않은 경우를 0으로 가정하였습니다~

Copy link
Member

Choose a reason for hiding this comment

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

업로드화면에서 사용할 거라면 업로드 모듈에서 해도 되지 않을까?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

다른 화면에서도 사용가능성 고려 및
애써서, core-ui 로 모듈을 나누어 놨으니, ui 관련은 모아두는 게 적합하다고 생각했어요~

@youlalala youlalala deleted the android/feature/upload branch November 20, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 android android ✨ feat 기능 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

음원 파일 업로드 (유저 입력)
3 participants