Skip to content

Conversation

@WorldOneTop
Copy link
Collaborator

기기에 저장된 이미지들을 불러오는 갤러리 화면 기본 세팅입니다
페이징 라이브러리 사용했고, 액티비티 내에 런타임 퍼미션 체크 합니다.

기본적인 흐름은 다음 그림과 같습니다
image

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 추가
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,
)
Copy link
Collaborator Author

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 {
Copy link
Collaborator

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 도 필요하지 않을까요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

커스텀 갤러리 사용 목적이 바코드 인식으로 업로드 관련이라 저장하는 기능은 필요 없을 것 같아 추가하지않았습니다!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Figma에 보시면 ios-식단 기록 화면에 식단 목록이 보여야 하는데, 저장하는 기능도 필요하지 않을까요?

@thsamajiki thsamajiki self-requested a review June 25, 2023 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants