From 43c0037eca1f39761e1876d65f894de781045e70 Mon Sep 17 00:00:00 2001 From: Clemente Date: Sun, 2 Jun 2024 16:49:28 +0200 Subject: [PATCH] Add JVM static --- .../io/realm/kotlin/internal/interop/sync/CoreConnectionState.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cinterop/src/jvm/kotlin/io/realm/kotlin/internal/interop/sync/CoreConnectionState.kt b/packages/cinterop/src/jvm/kotlin/io/realm/kotlin/internal/interop/sync/CoreConnectionState.kt index 8de83c508a..bac74a88e6 100644 --- a/packages/cinterop/src/jvm/kotlin/io/realm/kotlin/internal/interop/sync/CoreConnectionState.kt +++ b/packages/cinterop/src/jvm/kotlin/io/realm/kotlin/internal/interop/sync/CoreConnectionState.kt @@ -24,6 +24,7 @@ actual enum class CoreConnectionState(val value: Int) { RLM_SYNC_CONNECTION_STATE_CONNECTED(realm_sync_connection_state_e.RLM_SYNC_CONNECTION_STATE_CONNECTED); companion object { + @JvmStatic fun of(value: Int): CoreConnectionState = entries.find { it.value == value } ?: error("Unknown connection state: $value")