5 changed files with 11 additions and 4 deletions

No files matched your search

@@ -138,7 +138,11 @@ class ProjectVM(
when(event) { when(event) {
ProjectEvent.Deleted -> back() ProjectEvent.Deleted -> back()
is ProjectEvent.EntryDeleted -> _benchmarks.value = _benchmarks.value.replace({ it.id == event.benchmarkId }) { it.remove(event.id) } is ProjectEvent.EntryDeleted -> _benchmarks.value = _benchmarks.value.replace({ it.id == event.benchmarkId }) { it.remove(event.id) }
is ProjectEvent.VersionChanged -> _labels.value += (event.label.id to Version.fromResponse(event.label)) is ProjectEvent.VersionChanged -> {
val updVersion = Version.fromResponse(event.label)
_labels.value += (event.label.id to updVersion)
_benchmarks.value = _benchmarks.value.map { b -> b.copy(entries = b.entries.map { e -> if(e.label.id == event.label.id) e.copy(label = updVersion) else e }) }
}
is ProjectEvent.VersionDeleted -> { is ProjectEvent.VersionDeleted -> {
_labels.value = _labels.value.filter { it.value.id != event.id } _labels.value = _labels.value.filter { it.value.id != event.id }
_benchmarks.value = _benchmarks.value.map { it.copy(entries = it.entries.filter { e -> e.label.id != event.id }) } _benchmarks.value = _benchmarks.value.map { it.copy(entries = it.entries.filter { e -> e.label.id != event.id }) }
+1 -1
View File
@@ -6,7 +6,7 @@ json = "20260522"
exposed = "1.3.1" exposed = "1.3.1"
ksoup = "0.2.6" ksoup = "0.2.6"
sqlite = "3.53.2.0" sqlite = "3.53.2.0"
mariadb = "3.5.9" mariadb = "3.5.11"
androidx-lifecycle = "2.10.0" androidx-lifecycle = "2.10.0"
compose-multiplatform = "1.11.1" compose-multiplatform = "1.11.1"
kotlin = "2.4.10" kotlin = "2.4.10"
+3
View File
@@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}
+1 -1
View File
@@ -7,7 +7,7 @@ plugins {
} }
group = "com.jaytux.phoebench" group = "com.jaytux.phoebench"
version = PhoebenchVersion(1, 2, 1, "patch0") version = PhoebenchVersion(1, 2, 1, "patch1")
if((version as PhoebenchVersion) < (rootProject.version as PhoebenchVersion)) if((version as PhoebenchVersion) < (rootProject.version as PhoebenchVersion))
throw GradleException("Server version must be at least as high as protocol/common version") throw GradleException("Server version must be at least as high as protocol/common version")
@@ -298,7 +298,7 @@ inline fun <reified TParams: Any, reified TEvent: Any, TInter, TExtra> Route.wra
handler(params, inter, extra, converter.deserialize<TEvent>(frame)) handler(params, inter, extra, converter.deserialize<TEvent>(frame))
} }
} }
catch(e: ClosedReceiveChannelException) { finally {
onClose(params, inter, extra) onClose(params, inter, extra)
} }
} }