-
Notifications
You must be signed in to change notification settings - Fork 4
Internal Camera 구현 및 실행 [#110] #154
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
Conversation
ing03201
commented
Sep 22, 2025
- [Issue] Internal Camera 구현 #45 [CameraScreen] 리팩터링 #110
- [Descriptions]
- InternalCameraScreen 생성
- InternalCameraViewModel 생성
- ImageRepository cameraType별로 Uri 수정
…een and update InternelCameraViewModel with capture functionality
|
|
||
| // network | ||
| const val WEB_SERVER_URL = "https://4cuts.store/" | ||
| const val WEB_SERVER_URL = "https://foke.clon.dev/" |
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.
base url 변경 건은 다른 리뷰로 올리면 좋을 것 같아요~
presenter/src/main/java/com/foke/together/presenter/navigation/NavGraph.kt
Show resolved
Hide resolved
presenter/src/main/java/com/foke/together/presenter/navigation/NavGraph.kt
Show resolved
Hide resolved
| class ImageRepository @Inject constructor( | ||
| @ApplicationContext private val context: Context | ||
| @ApplicationContext private val context: Context, | ||
| private val getCameraSourceTypeUseCase: GetCameraSourceTypeUseCase |
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.
해당 의존성은 사용하지 않고 구조상 애매한 부분이 있어 일단 삭제하는게 좋을 것 같습니다~
- 구조 관련 내용: 프로젝트 모듈 구조 리뷰 #17
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.
넵 삭제하였습니다
| // TODO: 추후 세션 관리와 엮어서 처리하기 | ||
| @Deprecated("Not in use") | ||
| fun getCapturedImageListUri(): List<Uri> = imageRepositoryInterface.getCachedImageUriList() | ||
| fun getCapturedImageListUri(sourceType: CameraSourceType): List<Uri> = imageRepositoryInterface.getCachedImageUriList(sourceType) |
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.
GeneratePhotoFrameUseCaseV1 을 deprecated한 이유가 Session으로 전환 작업을 위한 내용이었는데
아래 커밋 참고해보면 좋을 것 같습니다~
- 세션 고도화: Session 고도화 #121
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.
해당 내용은 InternalCamera로 기존 기초적인 실행을 위해 인자를 추가했습니다.
Deprecated 된 함수인건 확인하고있습니다.
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.
리뷰했습니다~
아래 코멘트 확인 안된거 같은데 확인해주세요~
fetiu
left a comment
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 최신화 관련해서 댓글 달았으니 다음 PR 등에서 적용되었으면 좋겠네요!
| MediaStore.Images.Media.DATE_ADDED | ||
| ) | ||
| val selection = "${MediaStore.Images.Media.RELATIVE_PATH} LIKE ?" | ||
| val selectionArgs = arrayOf("%Pictures/4cuts/backup%") |
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.
NIT: 4cuts 를 4cut 단수형으로 바꿀 필요가 있을까 궁금합니다!
| val contentValues = ContentValues().apply { | ||
| put(MediaStore.MediaColumns.DISPLAY_NAME, "${fileName}.jpg") | ||
| put(MediaStore.MediaColumns.MIME_TYPE, "image/jpeg") | ||
| put(MediaStore.Images.Media.RELATIVE_PATH, "Pictures/4cuts/backup") |
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.
NIT: 동일하게 cuts를 cut으로 바꿀 필요가 있을지 궁금합니다!
| AppLog.d(TAG, "generateQRcode" ,"result: $result") | ||
|
|
||
| val downloadUrl: String = getDownloadUrlUseCase(sessionKey).getOrElse { "https://4cuts.store" } | ||
| val downloadUrl: String = getDownloadUrlUseCase(sessionKey).getOrElse { "https://foke.clon.dev" } |
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.
중요: 4cut.us 로 변경해야합니다!