-
Notifications
You must be signed in to change notification settings - Fork 0
[FD-79] image picker 추가 #13
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: develop
Are you sure you want to change the base?
Conversation
- 테스트 코드 추가 - 버튼 visibility 조정
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.
color scheme이름은 일단 아무거나 끼워뒀습니다! 추후 맞춰 변경 예정입니다
Hoseong-Ryu
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.
clearCache를 언제할지 정해야될 것 같기는한데 MVP 나오고 실기기로 테스트해보면서 OOM 직접 터뜨려보면서 정해볼까요..?
수고하셨습니다~!
|
|
||
| private data class PhotoWithClassification( | ||
| val uriString: String, | ||
| val result: com.nexters.fooddiary.domain.model.ClassificationResult? |
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.
p5. AI 사용하고 저도 자주하는 실수... import 부탁드리겠습니다..!
| lifecycleViewmodelCompose = "2.8.7" | ||
| activityCompose = "1.9.3" | ||
| composeBom = "2025.12.01" | ||
| composeBom = "2024.11.00" |
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.
p4. 버전을 변경했어야하는 이유가 있었나요?
| val uriString = mediaItem.uri | ||
| val result = classificationRepository.classifyImage(uriString) | ||
| PhotoWithClassification(uriString, result) |
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.
p2. async await으로 처리하면 비동기 처리를 더 효율적으로 사용할 수 있을 것 같아요
| val result = runCatching { | ||
| classifyImageUseCase(uri.toString()) | ||
| }.getOrNull() | ||
| val idx = index |
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.
p5. 여기 idx 변수 선언 사용하지 않아도 괜찮을 것 같아요
| import com.nexters.fooddiary.domain.model.ClassificationResult | ||
|
|
||
| data class ClassifiedImageItem( | ||
| val bitmap: Bitmap, |
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.
p3. Bitmap을 상태로 저장하는 것보다는 URI를 저장하는게 메모리 사용량을 줄일 수 있을 것 같아요.
변경 내용
체크리스트