Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/commonMain/kotlin/spp.protocol/utils/ArtifactNameUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ object ArtifactNameUtils {
}

fun getShortFunctionSignature(qualifiedName: String): String {
return getFunctionSignature(qualifiedName).replace("\\B\\w+(\\.)".toRegex(), "$1")
return getFunctionSignature(qualifiedName.substringBefore("#"))
.replace("\\B\\w+(\\.)".toRegex(), "$1")
}

fun getFunctionSignature(qualifiedName: String): String {
val withoutClassName = qualifiedName.replace(getQualifiedClassName(qualifiedName)!!, "")
val withoutClassName = qualifiedName.substringBefore("#")
.replace(getQualifiedClassName(qualifiedName.substringBefore("#"))!!, "")
return withoutClassName.substring(
withoutClassName.substring(0, withoutClassName.indexOf("(")).lastIndexOf("?") + 2
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package spp.protocol.service.live

import spp.protocol.view.LiveViewSubscription
import io.vertx.codegen.annotations.ProxyGen
import io.vertx.codegen.annotations.VertxGen
import io.vertx.core.AsyncResult
import io.vertx.core.Handler
import spp.protocol.view.LiveViewSubscription

/**
* todo: description.
Expand All @@ -17,5 +17,6 @@ import io.vertx.core.Handler
interface LiveViewService {
fun addLiveViewSubscription(subscription: LiveViewSubscription, handler: Handler<AsyncResult<LiveViewSubscription>>)
fun removeLiveViewSubscription(subscriptionId: String, handler: Handler<AsyncResult<LiveViewSubscription>>)
fun getLiveViewSubscriptions(handler: Handler<AsyncResult<List<LiveViewSubscription>>>)
fun clearLiveViewSubscriptions(handler: Handler<AsyncResult<List<LiveViewSubscription>>>)
}