-
Notifications
You must be signed in to change notification settings - Fork 0
Gallery 기본 세팅 #8
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
base: TDH-6-develop
Are you sure you want to change the base?
Conversation
1. gradle implement to paging source 2. gallery data source di injection 3. create gallery image model 4. create gallery repository and data source
1. 갤러리 도메인 레이어 완성
1. gradle implement to Paging source 2. 기본적인 갤러리 화면 구성 완료
1. 모델명 변경 gallery -> photo
1. 갤러리 이미지 접근 모듈화 및 use case module 추가
| data class Photo( | ||
| val uri: Uri, | ||
| val name: String, | ||
| val fullName: String, | ||
| val mimeType: String, | ||
| val addedDate: Date, | ||
| val folder: String, | ||
| val size: Long, | ||
| val width: Int, | ||
| val height: Int, | ||
| ) |
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.
순서대로
파일 uri, 파일 이름, 확장자명을 포함한 이름, 확장자 타입, 생성일자, 상위 폴더명, 파일 크기, 가로 크기, 세로크기 입니다
| } | ||
|
|
||
|
|
||
| private fun hasAllPermissions() = requiredPermissions.all { |
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.
위의 필드 requiredPermissions에 Manifest.permission.WRITE_EXTERNAL_STORAGE 도 필요하지 않을까요?
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.
Figma에 보시면 ios-식단 기록 화면에 식단 목록이 보여야 하는데, 저장하는 기능도 필요하지 않을까요?
기기에 저장된 이미지들을 불러오는 갤러리 화면 기본 세팅입니다
페이징 라이브러리 사용했고, 액티비티 내에 런타임 퍼미션 체크 합니다.
기본적인 흐름은 다음 그림과 같습니다
