Refactor/#63 compose stable marker#76
Conversation
Walkthroughcore/model에 compose-stable-marker 의존성을 추가하고 여러 데이터 클래스(Album, AlbumPreview, Brand, Photo, PhotoBooth, Pose)에 Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@core/model/src/main/java/com/neki/android/core/model/Pose.kt`:
- Around line 3-7: The import androidx.compose.runtime.Immutable is unused
because the `@Immutable` annotation is commented out in Pose.kt; either remove
that import to eliminate the unused import, or re-enable the annotation by
uncommenting `@Immutable` above the Pose data/class declaration to match other
models (e.g., Album, Brand, Photo, PhotoBooth) so the class annotated with
`@Serializable` is also marked `@Immutable`.
🧹 Nitpick comments (1)
core/model/src/main/java/com/neki/android/core/model/Photo.kt (1)
5-5: 사용되지 않는 import 확인 필요
@OptIn(ExperimentalTime::class)어노테이션이 제거되었으므로kotlin.time.ExperimentalTimeimport가 더 이상 사용되지 않는 것으로 보입니다. 불필요한 import는 제거하는 것이 좋습니다.🧹 미사용 import 제거 제안
import androidx.compose.runtime.Immutable import kotlinx.serialization.Serializable -import kotlin.time.ExperimentalTime
ikseong00
left a comment
There was a problem hiding this comment.
👍 컴포저블에서만 쓰이는 모델에 @Immutable 다신 부분 좋습니다!
Q. Photo data class의 @OptIn(ExperimentalTime::class) constructor 해당 부분 제거해도 괜찮을까요? @serializable 경고메시지 때문에 추가해두신게 아닌가 싶습니다.
기존 kotlinx.datetime 을 사용하고 있어서 추가했으나 String으로 바꾸면서 필요가 없어진 부분인데 놓친 것 같습니다. 제거하는 게 맞습니다!
🔗 관련 이슈
📙 작업 설명
com.github.skydoves:compose-stable-marker의존성 추가💬 추가 설명 or 리뷰 포인트 (선택)
@Immutable어노테이션 추가해두었고, 병합 이후 사용하고 있는 부분에서 바로 추가하면 될 것 같습니다.Q. Photo data class의
@OptIn(ExperimentalTime::class) constructor해당 부분 제거해도 괜찮을까요? @serializable 경고메시지 때문에 추가해두신게 아닌가 싶습니다.Summary by CodeRabbit
릴리스 노트
✏️ Tip: You can customize this high-level summary in your review settings.