chore(deps): bump kotlin version to 2.1.21 (#181)

* chore(deps): bump kotlin version to 2.1.21

* fix: handle null values in converter
This commit is contained in:
Naveen Singh
2025-05-22 11:04:56 +05:30
committed by GitHub
parent afb65b6b7d
commit 506eb4cde0
2 changed files with 3 additions and 2 deletions

View File

@@ -8,7 +8,8 @@ import org.fossify.clock.models.TimerState
class Converters {
@TypeConverter
fun jsonToTimerState(value: String): TimerState {
fun jsonToTimerState(value: String?): TimerState {
if (value.isNullOrEmpty()) return TimerState.Idle
return try {
gson.fromJson(value, StateWrapper::class.java).state
} catch (e: Exception) {

View File

@@ -1,6 +1,6 @@
[versions]
#jetbrains
kotlin = "2.1.20"
kotlin = "2.1.21"
kotlinxSerializationJson = "1.6.3"
#KSP
ksp = "2.1.21-2.0.1"