diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 9530fb2..e534860 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -43,6 +43,7 @@ chucker = "3.5.2" # Coil coil = "2.4.0" +coil-compose = "2.4.0" # Lottie lottie-compose = "6.1.0" @@ -132,6 +133,7 @@ hilt-ext-work = { group = "androidx.hilt", name = "hilt-work", version.ref = "hi #Coil coil-core = { group = "io.coil-kt", name = "coil", version.ref = "coil" } +coil-compose = { group = "io.coil-kt", name = "coil-compose", version.ref = "coil-compose" } #Lottie lottie-compose = { group = "com.airbnb.android", name = "lottie-compose", version.ref = "lottie-compose" } @@ -216,7 +218,7 @@ compose = [ "compose-test-uiManifest", "compose-test-ui", "compose-viewModel", - "compose-hiltViewModel" + "compose-hiltViewModel", ] okhttp = [ diff --git a/presentation/checklist/build.gradle.kts b/presentation/checklist/build.gradle.kts index 78ff53c..a78e2fd 100644 --- a/presentation/checklist/build.gradle.kts +++ b/presentation/checklist/build.gradle.kts @@ -20,4 +20,5 @@ dependencies { implementation(project(":presentation:resource")) implementation(project(":presentation:common")) implementation(project(":presentation:deeplink")) + implementation(libs.coil.compose) } diff --git a/presentation/checklist/src/main/java/com/dkin/chevit/presentation/checklist/CheckList.kt b/presentation/checklist/src/main/java/com/dkin/chevit/presentation/checklist/CheckList.kt index 5af984a..898c3c6 100644 --- a/presentation/checklist/src/main/java/com/dkin/chevit/presentation/checklist/CheckList.kt +++ b/presentation/checklist/src/main/java/com/dkin/chevit/presentation/checklist/CheckList.kt @@ -21,6 +21,8 @@ class CheckList : MVIComposeFragment {} + is ChecklistEffect.NavigateToLink -> {} + is ChecklistEffect.NavigateToCategory -> {} } } diff --git a/presentation/checklist/src/main/java/com/dkin/chevit/presentation/checklist/ChecklistContract.kt b/presentation/checklist/src/main/java/com/dkin/chevit/presentation/checklist/ChecklistContract.kt index 8a3b1b4..7efd887 100644 --- a/presentation/checklist/src/main/java/com/dkin/chevit/presentation/checklist/ChecklistContract.kt +++ b/presentation/checklist/src/main/java/com/dkin/chevit/presentation/checklist/ChecklistContract.kt @@ -4,9 +4,10 @@ import androidx.compose.runtime.Stable import com.dkin.chevit.core.mvi.ViewEffect import com.dkin.chevit.core.mvi.ViewIntent import com.dkin.chevit.core.mvi.ViewState -import com.dkin.chevit.presentation.common.category.Category +import com.dkin.chevit.presentation.common.category.CategoryType sealed interface ChecklistIntent : ViewIntent { + data class ChangeTemplateOpenSetting(val isOpen: Boolean) : ChecklistIntent } @Stable @@ -15,7 +16,9 @@ data class ChecklistState( val date: String, val notice: Notice, val weathers: List, - val templates: List