mirror of
https://github.com/FossifyOrg/Clock.git
synced 2026-04-23 15:57:12 -04:00
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:
@@ -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) {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user