Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/model/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
}

dependencies {
compileOnly(libs.compose.stable.marker)
api(libs.kotlinx.collections.immutable)
implementation(libs.kotlinx.serialization.json)
}
3 changes: 3 additions & 0 deletions core/model/src/main/java/com/neki/android/core/model/Album.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package com.neki.android.core.model

import androidx.compose.runtime.Immutable
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.persistentListOf
import kotlinx.serialization.Serializable

@Serializable
@Immutable
data class Album(
val id: Long = 0L,
val title: String = "",
Expand All @@ -13,6 +15,7 @@ data class Album(
)

@Serializable
@Immutable
data class AlbumPreview(
val id: Long = 0L,
val title: String = "",
Expand Down
3 changes: 3 additions & 0 deletions core/model/src/main/java/com/neki/android/core/model/Brand.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.neki.android.core.model

import androidx.compose.runtime.Immutable

@Immutable
data class Brand(
val isChecked: Boolean = false,
val id: Long = 0L,
Expand Down
5 changes: 3 additions & 2 deletions core/model/src/main/java/com/neki/android/core/model/Photo.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package com.neki.android.core.model

import androidx.compose.runtime.Immutable
import kotlinx.serialization.Serializable
import kotlin.time.ExperimentalTime

@Serializable
data class Photo @OptIn(ExperimentalTime::class) constructor(
@Immutable
data class Photo(
val id: Long = 0L,
val imageUrl: String = "",
val isFavorite: Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.neki.android.core.model

import androidx.compose.runtime.Immutable

@Immutable
data class PhotoBooth(
val isFocused: Boolean = false,
val isCheckedBrand: Boolean = true,
Expand Down
2 changes: 2 additions & 0 deletions core/model/src/main/java/com/neki/android/core/model/Pose.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.neki.android.core.model

import androidx.compose.runtime.Immutable
import kotlinx.serialization.Serializable

@Serializable
@Immutable
data class Pose(
val id: Long = 0L,
val poseImageUrl: String = "",
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
agp = "8.13.1"
annotationExperimental = "1.5.1"
cameraX = "1.5.2"
composeStableMarker = "1.0.7"
kotlin = "2.1.0"
coreKtx = "1.15.0"
junit = "4.13.2"
Expand Down Expand Up @@ -55,6 +56,7 @@ androidx-compose-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-
androidx-compose-ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" }
androidx-compose-material3 = { group = "androidx.compose.material3", name = "material3" }
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
compose-stable-marker = { module = "com.github.skydoves:compose-stable-marker", version.ref = "composeStableMarker" }

androidx-navigation3-runtime = { group = "androidx.navigation3", name = "navigation3-runtime", version.ref = "androidxNavigation3" }
androidx-navigation3-ui = { group = "androidx.navigation3", name = "navigation3-ui", version.ref = "androidxNavigation3" }
Expand Down