Gallery 기본 세팅#8
Open
WorldOneTop wants to merge 5 commits into
Open
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 추가
WorldOneTop
commented
Jun 20, 2023
Comment on lines
+6
to
+16
| 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, | ||
| ) |
Collaborator
Author
There was a problem hiding this comment.
순서대로
파일 uri, 파일 이름, 확장자명을 포함한 이름, 확장자 타입, 생성일자, 상위 폴더명, 파일 크기, 가로 크기, 세로크기 입니다
thsamajiki
reviewed
Jun 25, 2023
| } | ||
|
|
||
|
|
||
| private fun hasAllPermissions() = requiredPermissions.all { |
Collaborator
There was a problem hiding this comment.
위의 필드 requiredPermissions에 Manifest.permission.WRITE_EXTERNAL_STORAGE 도 필요하지 않을까요?
Collaborator
Author
There was a problem hiding this comment.
커스텀 갤러리 사용 목적이 바코드 인식으로 업로드 관련이라 저장하는 기능은 필요 없을 것 같아 추가하지않았습니다!
Collaborator
There was a problem hiding this comment.
Figma에 보시면 ios-식단 기록 화면에 식단 목록이 보여야 하는데, 저장하는 기능도 필요하지 않을까요?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
기기에 저장된 이미지들을 불러오는 갤러리 화면 기본 세팅입니다
페이징 라이브러리 사용했고, 액티비티 내에 런타임 퍼미션 체크 합니다.
기본적인 흐름은 다음 그림과 같습니다
