Skip to content

Commit

Permalink
Update kotlin monorepo to v2.0.21 (#3824)
Browse files Browse the repository at this point in the history
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: mueller-ma <[email protected]>
  • Loading branch information
renovate[bot] and mueller-ma authored Dec 3, 2024
1 parent 0f3e4c0 commit 540dcb0
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="KotlinJpsPluginSettings">
<option name="version" value="2.0.0" />
<option name="version" value="2.0.21" />
</component>
</project>
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '2.0.0'
ext.kotlin_version = '2.0.21'
repositories {
mavenCentral()
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import org.openhab.habdroid.util.map
import org.openhab.habdroid.util.optStringOrNull

@Parcelize
@ConsistentCopyVisibility
data class CloudNotificationId internal constructor(
val persistedId: String,
val referenceId: String?
Expand All @@ -48,6 +49,7 @@ sealed class CloudMessage : Parcelable {
abstract val id: CloudNotificationId

@Parcelize
@ConsistentCopyVisibility
data class CloudNotification internal constructor(
override val id: CloudNotificationId,
val title: String,
Expand Down Expand Up @@ -153,6 +155,7 @@ fun JSONObject.toCloudMessage(): CloudMessage? {
}

@Parcelize
@ConsistentCopyVisibility
data class CloudNotificationAction internal constructor(
val label: String,
private val internalAction: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import org.openhab.habdroid.util.getPrefs
import org.openhab.habdroid.util.getStringOrNull

@Parcelize
@ConsistentCopyVisibility
data class IconResource internal constructor(
internal val icon: String,
internal val isOh2: Boolean,
Expand Down
1 change: 1 addition & 0 deletions mobile/src/main/java/org/openhab/habdroid/model/Item.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import org.openhab.habdroid.util.optStringOrNull
import org.w3c.dom.Node

@Parcelize
@ConsistentCopyVisibility
data class Item internal constructor(
val name: String,
private val rawLabel: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import org.json.JSONObject
import org.openhab.habdroid.util.optStringOrNull

@Parcelize
@ConsistentCopyVisibility
data class LabeledValue internal constructor(
val value: String,
val valueRelease: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ import kotlinx.parcelize.Parcelize
import org.openhab.habdroid.util.asColorTemperatureToKelvin

@Parcelize
@ConsistentCopyVisibility
data class HsvState internal constructor(val hue: Float, val saturation: Float, val value: Float) : Parcelable {
fun toColor(includeValue: Boolean = true): Int {
return Color.HSVToColor(floatArrayOf(hue, saturation, if (includeValue) value else 100F))
}
}

@Parcelize
@ConsistentCopyVisibility
data class ParsedState internal constructor(
val asString: String,
val asBoolean: Boolean,
Expand Down Expand Up @@ -168,6 +170,7 @@ data class ParsedState internal constructor(
}

@Parcelize
@ConsistentCopyVisibility
data class NumberState internal constructor(
val value: Float,
val unit: String? = null,
Expand Down
1 change: 1 addition & 0 deletions mobile/src/main/java/org/openhab/habdroid/model/Sitemap.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import org.w3c.dom.Document
import org.w3c.dom.Node

@Parcelize
@ConsistentCopyVisibility
data class Sitemap internal constructor(
val name: String,
val label: String,
Expand Down

0 comments on commit 540dcb0

Please sign in to comment.