[Gradle] Update stable Kotlin version to 1.9.20 in Kvision benchmark
Benchmark is not working as Kvision fails to assemble with Kotlin 2.0: - https://youtrack.jetbrains.com/issue/KT-62036 - https://youtrack.jetbrains.com/issue/KT-63094 (main issue)
This commit is contained in:
+6
-804
@@ -35,10 +35,10 @@ index d0ef18b67b..ae67887584 100644
|
||||
+val kotlinVersion: String by extra
|
||||
+
|
||||
dependencies {
|
||||
- implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0")
|
||||
- implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.20")
|
||||
+ implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
|
||||
implementation("io.github.gradle-nexus:publish-plugin:1.2.0")
|
||||
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.8.20")
|
||||
implementation("io.github.gradle-nexus:publish-plugin:1.3.0")
|
||||
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.9.10")
|
||||
implementation(gradleApi())
|
||||
diff --git a/buildSrc/gradle.properties b/buildSrc/gradle.properties
|
||||
new file mode 100644
|
||||
@@ -67,13 +67,13 @@ index 9315dcac95..d5fabb822c 100644
|
||||
+++ b/gradle.properties
|
||||
@@ -1,7 +1,7 @@
|
||||
group=io.kvision
|
||||
versionNumber=7.0.0
|
||||
versionNumber=7.1.0
|
||||
|
||||
-systemProp.kotlinVersion=1.9.0
|
||||
-systemProp.kotlinVersion=1.9.20
|
||||
+kotlinVersion=<kotlin_version>
|
||||
javaVersion=17
|
||||
coroutinesVersion=1.7.3
|
||||
serializationVersion=1.6.0-RC
|
||||
serializationVersion=1.6.0
|
||||
diff --git a/settings.gradle.kts b/settings.gradle.kts
|
||||
index 901058aae2..7c338f6ba2 100644
|
||||
--- a/settings.gradle.kts
|
||||
@@ -93,801 +93,3 @@ index 901058aae2..7c338f6ba2 100644
|
||||
}
|
||||
}
|
||||
rootProject.name = "kvision"
|
||||
diff --git a/kvision-modules/kvision-server-javalin/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-javalin/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 38e3fb757e..010aa9110d 100644
|
||||
--- a/kvision-modules/kvision-server-javalin/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-javalin/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -29,7 +29,7 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
+expect class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
|
||||
/**
|
||||
* Binds a given route with a function of the receiver.
|
||||
@@ -37,7 +37,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified RET> bind(
|
||||
+ inline fun <reified RET> bind(
|
||||
noinline function: suspend T.() -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -49,7 +49,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR, reified RET> bind(
|
||||
+ inline fun <reified PAR, reified RET> bind(
|
||||
noinline function: suspend T.(PAR) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -61,7 +61,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -73,7 +73,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -85,7 +85,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -97,7 +97,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -109,7 +109,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5, PAR6) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -119,7 +119,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a tabulator component source
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified RET> bindTabulatorRemote(
|
||||
+ inline fun <reified RET> bindTabulatorRemote(
|
||||
noinline function: suspend T.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<RET>,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -128,7 +128,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a web socket connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
+ inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
noinline function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -137,7 +137,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a server-sent events connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR : Any> bind(
|
||||
+ inline fun <reified PAR : Any> bind(
|
||||
noinline function: suspend T.(SendChannel<PAR>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
diff --git a/kvision-modules/kvision-server-javalin/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-javalin/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 8f8e1a2d17..7239592f36 100644
|
||||
--- a/kvision-modules/kvision-server-javalin/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-javalin/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -26,5 +26,5 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-actual open class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
+actual class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
KVServiceMgr<T>
|
||||
diff --git a/kvision-modules/kvision-server-jooby/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-jooby/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 38e3fb757e..010aa9110d 100644
|
||||
--- a/kvision-modules/kvision-server-jooby/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-jooby/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -29,7 +29,7 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
+expect class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
|
||||
/**
|
||||
* Binds a given route with a function of the receiver.
|
||||
@@ -37,7 +37,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified RET> bind(
|
||||
+ inline fun <reified RET> bind(
|
||||
noinline function: suspend T.() -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -49,7 +49,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR, reified RET> bind(
|
||||
+ inline fun <reified PAR, reified RET> bind(
|
||||
noinline function: suspend T.(PAR) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -61,7 +61,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -73,7 +73,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -85,7 +85,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -97,7 +97,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -109,7 +109,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5, PAR6) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -119,7 +119,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a tabulator component source
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified RET> bindTabulatorRemote(
|
||||
+ inline fun <reified RET> bindTabulatorRemote(
|
||||
noinline function: suspend T.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<RET>,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -128,7 +128,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a web socket connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
+ inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
noinline function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -137,7 +137,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a server-sent events connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR : Any> bind(
|
||||
+ inline fun <reified PAR : Any> bind(
|
||||
noinline function: suspend T.(SendChannel<PAR>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
diff --git a/kvision-modules/kvision-server-jooby/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-jooby/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 8f8e1a2d17..7239592f36 100644
|
||||
--- a/kvision-modules/kvision-server-jooby/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-jooby/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -26,5 +26,5 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-actual open class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
+actual class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
KVServiceMgr<T>
|
||||
diff --git a/kvision-modules/kvision-server-ktor-koin/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-ktor-koin/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 38e3fb757e..010aa9110d 100644
|
||||
--- a/kvision-modules/kvision-server-ktor-koin/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-ktor-koin/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -29,7 +29,7 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
+expect class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
|
||||
/**
|
||||
* Binds a given route with a function of the receiver.
|
||||
@@ -37,7 +37,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified RET> bind(
|
||||
+ inline fun <reified RET> bind(
|
||||
noinline function: suspend T.() -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -49,7 +49,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR, reified RET> bind(
|
||||
+ inline fun <reified PAR, reified RET> bind(
|
||||
noinline function: suspend T.(PAR) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -61,7 +61,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -73,7 +73,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -85,7 +85,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -97,7 +97,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -109,7 +109,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5, PAR6) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -119,7 +119,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a tabulator component source
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified RET> bindTabulatorRemote(
|
||||
+ inline fun <reified RET> bindTabulatorRemote(
|
||||
noinline function: suspend T.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<RET>,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -128,7 +128,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a web socket connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
+ inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
noinline function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -137,7 +137,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a server-sent events connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR : Any> bind(
|
||||
+ inline fun <reified PAR : Any> bind(
|
||||
noinline function: suspend T.(SendChannel<PAR>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
diff --git a/kvision-modules/kvision-server-ktor-koin/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-ktor-koin/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 8f8e1a2d17..7239592f36 100644
|
||||
--- a/kvision-modules/kvision-server-ktor-koin/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-ktor-koin/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -26,5 +26,5 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-actual open class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
+actual class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
KVServiceMgr<T>
|
||||
diff --git a/kvision-modules/kvision-server-ktor/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-ktor/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 38e3fb757e..010aa9110d 100644
|
||||
--- a/kvision-modules/kvision-server-ktor/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-ktor/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -29,7 +29,7 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
+expect class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
|
||||
/**
|
||||
* Binds a given route with a function of the receiver.
|
||||
@@ -37,7 +37,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified RET> bind(
|
||||
+ inline fun <reified RET> bind(
|
||||
noinline function: suspend T.() -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -49,7 +49,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR, reified RET> bind(
|
||||
+ inline fun <reified PAR, reified RET> bind(
|
||||
noinline function: suspend T.(PAR) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -61,7 +61,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -73,7 +73,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -85,7 +85,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -97,7 +97,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -109,7 +109,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5, PAR6) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -119,7 +119,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a tabulator component source
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified RET> bindTabulatorRemote(
|
||||
+ inline fun <reified RET> bindTabulatorRemote(
|
||||
noinline function: suspend T.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<RET>,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -128,7 +128,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a web socket connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
+ inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
noinline function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -137,7 +137,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a server-sent events connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR : Any> bind(
|
||||
+ inline fun <reified PAR : Any> bind(
|
||||
noinline function: suspend T.(SendChannel<PAR>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
diff --git a/kvision-modules/kvision-server-ktor/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-ktor/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 8f8e1a2d17..7239592f36 100644
|
||||
--- a/kvision-modules/kvision-server-ktor/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-ktor/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -26,5 +26,5 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-actual open class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
+actual class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
KVServiceMgr<T>
|
||||
diff --git a/kvision-modules/kvision-server-micronaut/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-micronaut/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 38e3fb757e..010aa9110d 100644
|
||||
--- a/kvision-modules/kvision-server-micronaut/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-micronaut/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -29,7 +29,7 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
+expect class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
|
||||
/**
|
||||
* Binds a given route with a function of the receiver.
|
||||
@@ -37,7 +37,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified RET> bind(
|
||||
+ inline fun <reified RET> bind(
|
||||
noinline function: suspend T.() -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -49,7 +49,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR, reified RET> bind(
|
||||
+ inline fun <reified PAR, reified RET> bind(
|
||||
noinline function: suspend T.(PAR) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -61,7 +61,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -73,7 +73,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -85,7 +85,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -97,7 +97,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -109,7 +109,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5, PAR6) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -119,7 +119,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a tabulator component source
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified RET> bindTabulatorRemote(
|
||||
+ inline fun <reified RET> bindTabulatorRemote(
|
||||
noinline function: suspend T.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<RET>,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -128,7 +128,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a web socket connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
+ inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
noinline function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -137,7 +137,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a server-sent events connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR : Any> bind(
|
||||
+ inline fun <reified PAR : Any> bind(
|
||||
noinline function: suspend T.(SendChannel<PAR>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
diff --git a/kvision-modules/kvision-server-micronaut/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-micronaut/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 8f8e1a2d17..7239592f36 100644
|
||||
--- a/kvision-modules/kvision-server-micronaut/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-micronaut/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -26,5 +26,5 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-actual open class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
+actual class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
KVServiceMgr<T>
|
||||
diff --git a/kvision-modules/kvision-server-spring-boot/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-spring-boot/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 38e3fb757e..010aa9110d 100644
|
||||
--- a/kvision-modules/kvision-server-spring-boot/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-spring-boot/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -29,7 +29,7 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
+expect class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
|
||||
/**
|
||||
* Binds a given route with a function of the receiver.
|
||||
@@ -37,7 +37,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified RET> bind(
|
||||
+ inline fun <reified RET> bind(
|
||||
noinline function: suspend T.() -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -49,7 +49,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR, reified RET> bind(
|
||||
+ inline fun <reified PAR, reified RET> bind(
|
||||
noinline function: suspend T.(PAR) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -61,7 +61,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -73,7 +73,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -85,7 +85,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -97,7 +97,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -109,7 +109,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5, PAR6) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -119,7 +119,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a tabulator component source
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified RET> bindTabulatorRemote(
|
||||
+ inline fun <reified RET> bindTabulatorRemote(
|
||||
noinline function: suspend T.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<RET>,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -128,7 +128,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a web socket connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
+ inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
noinline function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -137,7 +137,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a server-sent events connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR : Any> bind(
|
||||
+ inline fun <reified PAR : Any> bind(
|
||||
noinline function: suspend T.(SendChannel<PAR>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
diff --git a/kvision-modules/kvision-server-spring-boot/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-spring-boot/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 8f8e1a2d17..7239592f36 100644
|
||||
--- a/kvision-modules/kvision-server-spring-boot/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-spring-boot/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -26,5 +26,5 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-actual open class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
+actual class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
KVServiceMgr<T>
|
||||
diff --git a/kvision-modules/kvision-server-vertx/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-vertx/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 38e3fb757e..010aa9110d 100644
|
||||
--- a/kvision-modules/kvision-server-vertx/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-vertx/src/commonMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -29,7 +29,7 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
+expect class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVServiceMgr<T> {
|
||||
|
||||
/**
|
||||
* Binds a given route with a function of the receiver.
|
||||
@@ -37,7 +37,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified RET> bind(
|
||||
+ inline fun <reified RET> bind(
|
||||
noinline function: suspend T.() -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -49,7 +49,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR, reified RET> bind(
|
||||
+ inline fun <reified PAR, reified RET> bind(
|
||||
noinline function: suspend T.(PAR) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -61,7 +61,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -73,7 +73,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -85,7 +85,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -97,7 +97,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -109,7 +109,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* @param method a HTTP method
|
||||
* @param route a route
|
||||
*/
|
||||
- protected inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
+ inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified PAR6, reified RET> bind(
|
||||
noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5, PAR6) -> RET,
|
||||
method: HttpMethod = HttpMethod.POST,
|
||||
route: String? = null
|
||||
@@ -119,7 +119,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a tabulator component source
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified RET> bindTabulatorRemote(
|
||||
+ inline fun <reified RET> bindTabulatorRemote(
|
||||
noinline function: suspend T.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<RET>,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -128,7 +128,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a web socket connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
+ inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
|
||||
noinline function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
@@ -137,7 +137,7 @@ expect open class KVServiceManager<out T : Any>(serviceClass: KClass<T>) : KVSer
|
||||
* Binds a given function of the receiver as a server-sent events connection
|
||||
* @param function a function of the receiver
|
||||
*/
|
||||
- protected inline fun <reified PAR : Any> bind(
|
||||
+ inline fun <reified PAR : Any> bind(
|
||||
noinline function: suspend T.(SendChannel<PAR>) -> Unit,
|
||||
route: String? = null
|
||||
)
|
||||
diff --git a/kvision-modules/kvision-server-vertx/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-vertx/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
index 8f8e1a2d17..7239592f36 100644
|
||||
--- a/kvision-modules/kvision-server-vertx/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
+++ b/kvision-modules/kvision-server-vertx/src/jsMain/kotlin/io/kvision/remote/KVServiceManager.kt
|
||||
@@ -26,5 +26,5 @@ import kotlin.reflect.KClass
|
||||
/**
|
||||
* Multiplatform service manager.
|
||||
*/
|
||||
-actual open class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
+actual class KVServiceManager<out T : Any> actual constructor(serviceClass: KClass<T>) : KVServiceManagerJs<T>(),
|
||||
KVServiceMgr<T>
|
||||
@@ -9,8 +9,8 @@
|
||||
@file:BenchmarkProject(
|
||||
name = "kvision",
|
||||
gitUrl = "https://github.com/rjaros/kvision.git",
|
||||
gitCommitSha = "09295439264894e2f29197d57cfff84d5451bbb6",
|
||||
stableKotlinVersion = "1.9.0",
|
||||
gitCommitSha = "ec9c47f7b2e970cfb58b47d21e7490882808d51e",
|
||||
stableKotlinVersion = "1.9.20",
|
||||
)
|
||||
|
||||
import java.io.File
|
||||
|
||||
Reference in New Issue
Block a user