Skip to content

[feature] Add composable function for single photo selection via gallery/camera #612

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

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

DongJun-H
Copy link
Member

목적

  • 기존 사진 선택시 갤러리 및 카메라 호출에 대한 처리를 각 Composable function 내부에서 처리함으로써 처리 로직이 상이한 문제 제거
  • 권한 허용 및 미디어(갤러리/카메라) 로드에 대한 로직은 시스템 종속적이므로 중복코드 발생이 필연적이므로 이를 공통화 처리

작업 내용

  • 갤러리 및 카메라 로드시 launchGallery launchCamera를 통해 호출할 수 있도록 구현
  • 미디어 관련 권한 허용 요청상태에서 권한 허용시 바로 미디어가 보여질 수 있도록 처리
  • 선택/촬영한 이미지에 대한 로직과 권한 미허용시에 대한 action은 이를 호출하는 composable function에서 처리할 수있도록 구현

참고 사항

  • 현재 단일 사진에 대한 갤러리 호출만 가능한 상태로, 추후 여러장의 사진에 대한 갤러리 호출 function 추가 예정
  • 갤러리 이미지 선택에 대한 UI 개선 여부에 따라서 추후 메소드 내부 동작은 변경될 수 있으나, 전체적인 interface는 유지

@DongJun-H DongJun-H requested a review from yuni-ju January 13, 2025 12:50
@DongJun-H DongJun-H self-assigned this Jan 13, 2025
yuni-ju

This comment was marked as resolved.

@DongJun-H DongJun-H merged commit 0db92fd into develop Jan 15, 2025
1 check passed
@DongJun-H DongJun-H deleted the feature/issue-611 branch February 2, 2025 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants