Add wasm and native targets to core modules

This commit is contained in:
Alexander Nozik 2024-08-03 21:26:50 +03:00
parent c12f1ce1cd
commit 89d78c43bb
17 changed files with 43 additions and 20 deletions

View File

@ -8,7 +8,7 @@ plugins {
allprojects {
group = "space.kscience"
version = "0.4.0-dev-5"
version = "0.4.0-dev-6"
repositories{
google()
}

View File

@ -10,6 +10,8 @@ description = """
kscience{
jvm()
js()
native()
wasm()
useCoroutines()
useSerialization()
commonMain {

View File

@ -13,6 +13,7 @@ kscience {
jvm()
js()
native()
wasm()
useCoroutines()
useSerialization{
json()

View File

@ -0,0 +1,9 @@
package space.kscience.controls.spec
import space.kscience.controls.api.ActionDescriptor
import space.kscience.controls.api.PropertyDescriptor
import kotlin.reflect.KProperty
internal actual fun PropertyDescriptor.fromSpec(property: KProperty<*>){}
internal actual fun ActionDescriptor.fromSpec(property: KProperty<*>){}

View File

@ -13,6 +13,7 @@ kscience {
jvm()
js()
native()
wasm()
useCoroutines()
useSerialization {
json()

View File

@ -13,6 +13,7 @@ kscience {
jvm()
js()
native()
wasm()
useCoroutines()
useSerialization{
json()

View File

@ -1,5 +1,5 @@
plugins {
id("space.kscience.gradle.jvm")
id("space.kscience.gradle.mpp")
`maven-publish`
}
@ -7,11 +7,14 @@ description = """
MQTT client magix endpoint
""".trimIndent()
dependencies {
kscience {
jvm()
jvmMain {
api(projects.magix.magixApi)
implementation(libs.hivemq.mqtt.client)
implementation(spclibs.kotlinx.coroutines.jdk8)
}
}
readme {
maturity = space.kscience.gradle.Maturity.PROTOTYPE

View File

@ -1,20 +1,24 @@
plugins {
id("space.kscience.gradle.jvm")
id("space.kscience.gradle.mpp")
`maven-publish`
}
kscience {
jvm()
useCoroutines()
}
dependencies {
jvmMain {
api(projects.magix.magixStorage)
implementation(libs.xodus.entity.store)
// implementation("org.jetbrains.xodus:dnq:2.0.0")
testImplementation(spclibs.kotlinx.coroutines.test)
}
jvmTest{
implementation(spclibs.kotlinx.coroutines.test)
}
}
readme {
maturity = space.kscience.gradle.Maturity.PROTOTYPE
}

View File

@ -1,7 +1,7 @@
import space.kscience.gradle.Maturity
plugins {
id("space.kscience.gradle.jvm")
id("space.kscience.gradle.mpp")
`maven-publish`
}
@ -9,11 +9,14 @@ description = """
ZMQ client endpoint for Magix
""".trimIndent()
dependencies {
kscience {
jvm()
jvmMain {
api(projects.magix.magixApi)
api("org.slf4j:slf4j-api:2.0.6")
api("org.zeromq:jeromq:0.5.3")
}
}
readme {
maturity = Maturity.EXPERIMENTAL

View File

@ -4,7 +4,6 @@ import kotlinx.coroutines.*
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import org.slf4j.LoggerFactory
import org.zeromq.SocketType