From 669b3d97fbd706268c33e9a087ce142f775fd459 Mon Sep 17 00:00:00 2001 From: Brian Estrada Date: Sat, 20 Apr 2024 11:31:04 +0200 Subject: [PATCH] fix: updated repository url in AppUpdateService --- .../ocpp/emulator/update/AppUpdateService.kt | 2 +- .../emulator/update/model/GithubRelease.kt | 30 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt b/common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt index 68d0cb9..3d00db7 100644 --- a/common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt +++ b/common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/AppUpdateService.kt @@ -37,7 +37,7 @@ import kotlin.system.exitProcess class AppUpdateService { companion object { - private const val BASE_URL = "https://api.github.com/repos/monta-app/tool-ocpp-emulator" + private const val BASE_URL = "https://api.github.com/repos/monta-app/ocpp-emulator" } private val logger = KotlinLogging.logger {} diff --git a/common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/model/GithubRelease.kt b/common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/model/GithubRelease.kt index 8b77e9e..49e403f 100644 --- a/common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/model/GithubRelease.kt +++ b/common/src/jvmMain/kotlin/com/monta/ocpp/emulator/update/model/GithubRelease.kt @@ -5,37 +5,37 @@ import java.time.OffsetDateTime data class GithubRelease( @JsonProperty("url") - val url: String, // https://api.github.com/repos/monta-app/tool-ocpp-emulator/releases/89118842 + val url: String, @JsonProperty("assets_url") - val assetsUrl: String, // https://api.github.com/repos/monta-app/tool-ocpp-emulator/releases/89118842/assets + val assetsUrl: String, @JsonProperty("upload_url") - val uploadUrl: String, // https://uploads.github.com/repos/monta-app/tool-ocpp-emulator/releases/89118842/assets{?name,label} + val uploadUrl: String, @JsonProperty("html_url") - val htmlUrl: String, // https://github.com/monta-app/tool-ocpp-emulator/releases/tag/v1.1.4 + val htmlUrl: String, @JsonProperty("id") - val id: Int, // 89118842 + val id: Int, @JsonProperty("node_id") - val nodeId: String, // RE_kwDOIrJZFs4FT9h6 + val nodeId: String, @JsonProperty("tag_name") - val tagName: String, // v1.1.4 + val tagName: String, @JsonProperty("target_commitish") - val targetCommitish: String, // develop + val targetCommitish: String, @JsonProperty("name") val name: String, @JsonProperty("draft") - val draft: Boolean, // false + val draft: Boolean, @JsonProperty("prerelease") - val prerelease: Boolean, // false + val prerelease: Boolean, @JsonProperty("created_at") - val createdAt: OffsetDateTime, // 2023-01-16T12:05:01Z + val createdAt: OffsetDateTime, @JsonProperty("published_at") - val publishedAt: OffsetDateTime, // 2023-01-16T12:07:59Z + val publishedAt: OffsetDateTime, @JsonProperty("assets") val assets: List, @JsonProperty("tarball_url") - val tarballUrl: String, // https://api.github.com/repos/monta-app/tool-ocpp-emulator/tarball/v1.1.4 + val tarballUrl: String, @JsonProperty("zipball_url") - val zipballUrl: String, // https://api.github.com/repos/monta-app/tool-ocpp-emulator/zipball/v1.1.4 + val zipballUrl: String, @JsonProperty("body") - val body: String // ### ๐Ÿš€ Feature- added security event support- security profile 1 support- include Current.Import in MeterValues### ๐Ÿ› Fix- measurand string### ๐Ÿงน Chore- bumped version to 1.1.4- applied linter- UI tweaks + val body: String )