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
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ data class RoutineByDayDeletionRequestDto(
val routineCompletionId: Int?,
@SerialName("routineId")
val routineId: String,
@SerialName("routineType")
val routineType: String,
@SerialName("subRoutineInfosForDelete")
val subRoutineInfosForDelete: List<SubRoutineDeletionInfoDto>,
@SerialName("performedDate")
Expand All @@ -22,6 +24,7 @@ fun RoutineByDayDeletion.toDto() =
RoutineByDayDeletionRequestDto(
routineCompletionId = this.routineCompletionId,
routineId = this.routineId,
routineType = this.routineType.name,
subRoutineInfosForDelete = this.subRoutineInfosForDelete.map { it.toDto() },
performedDate = this.performedDate,
historySeq = this.historySeq,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.threegap.bitnagil.domain.routine.model
data class RoutineByDayDeletion(
val routineCompletionId: Int?,
val routineId: String,
val routineType: RoutineType,
val subRoutineInfosForDelete: List<SubRoutineDeletionInfo>,
val performedDate: String,
val historySeq: Int,
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ minSdk = "28"
targetSdk = "35"

## App Versioning
versionCode = "2"
versionName = "1.0"
versionCode = "3"
versionName = "1.0.1"

# Android Gradle Plugin
androidGradlePlugin = "8.10.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fun HomeScreenContainer(
onEdit = { viewModel.sendIntent(HomeIntent.NavigateToEditRoutine(routine.routineId)) },
onDelete = {
if (routine.repeatDay.isEmpty()) {
viewModel.deleteRoutine(routine.routineId)
viewModel.deleteRoutineByDay(routine)
} else {
viewModel.sendIntent(HomeIntent.ShowDeleteConfirmDialog(routine))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ fun RoutineUiModel.toRoutineByDayDeletion(performedDate: String): RoutineByDayDe
RoutineByDayDeletion(
routineCompletionId = this.routineCompletionId,
routineId = this.routineId,
routineType = this.routineType,
subRoutineInfosForDelete = this.subRoutines.map { it.toSubRoutineDeletionInfo() },
performedDate = performedDate,
historySeq = this.historySeq,
Expand Down