Add wasm and native targets to core modules
This commit is contained in:
parent
c12f1ce1cd
commit
89d78c43bb
@ -8,7 +8,7 @@ plugins {
|
|||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "space.kscience"
|
group = "space.kscience"
|
||||||
version = "0.4.0-dev-5"
|
version = "0.4.0-dev-6"
|
||||||
repositories{
|
repositories{
|
||||||
google()
|
google()
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,8 @@ description = """
|
|||||||
kscience{
|
kscience{
|
||||||
jvm()
|
jvm()
|
||||||
js()
|
js()
|
||||||
|
native()
|
||||||
|
wasm()
|
||||||
useCoroutines()
|
useCoroutines()
|
||||||
useSerialization()
|
useSerialization()
|
||||||
commonMain {
|
commonMain {
|
||||||
|
@ -13,6 +13,7 @@ kscience {
|
|||||||
jvm()
|
jvm()
|
||||||
js()
|
js()
|
||||||
native()
|
native()
|
||||||
|
wasm()
|
||||||
useCoroutines()
|
useCoroutines()
|
||||||
useSerialization{
|
useSerialization{
|
||||||
json()
|
json()
|
||||||
|
9
controls-core/src/wasmJsMain/kotlin/fromSpec.wasm.kt
Normal file
9
controls-core/src/wasmJsMain/kotlin/fromSpec.wasm.kt
Normal 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<*>){}
|
@ -13,6 +13,7 @@ kscience {
|
|||||||
jvm()
|
jvm()
|
||||||
js()
|
js()
|
||||||
native()
|
native()
|
||||||
|
wasm()
|
||||||
useCoroutines()
|
useCoroutines()
|
||||||
useSerialization {
|
useSerialization {
|
||||||
json()
|
json()
|
||||||
|
@ -13,6 +13,7 @@ kscience {
|
|||||||
jvm()
|
jvm()
|
||||||
js()
|
js()
|
||||||
native()
|
native()
|
||||||
|
wasm()
|
||||||
useCoroutines()
|
useCoroutines()
|
||||||
useSerialization{
|
useSerialization{
|
||||||
json()
|
json()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("space.kscience.gradle.jvm")
|
id("space.kscience.gradle.mpp")
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7,12 +7,15 @@ description = """
|
|||||||
MQTT client magix endpoint
|
MQTT client magix endpoint
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
|
|
||||||
dependencies {
|
kscience {
|
||||||
|
jvm()
|
||||||
|
jvmMain {
|
||||||
api(projects.magix.magixApi)
|
api(projects.magix.magixApi)
|
||||||
implementation(libs.hivemq.mqtt.client)
|
implementation(libs.hivemq.mqtt.client)
|
||||||
implementation(spclibs.kotlinx.coroutines.jdk8)
|
implementation(spclibs.kotlinx.coroutines.jdk8)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
readme{
|
readme {
|
||||||
maturity = space.kscience.gradle.Maturity.PROTOTYPE
|
maturity = space.kscience.gradle.Maturity.PROTOTYPE
|
||||||
}
|
}
|
||||||
|
@ -1,20 +1,24 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("space.kscience.gradle.jvm")
|
id("space.kscience.gradle.mpp")
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
|
||||||
kscience {
|
kscience {
|
||||||
|
jvm()
|
||||||
useCoroutines()
|
useCoroutines()
|
||||||
}
|
jvmMain {
|
||||||
|
|
||||||
dependencies {
|
|
||||||
api(projects.magix.magixStorage)
|
api(projects.magix.magixStorage)
|
||||||
implementation(libs.xodus.entity.store)
|
implementation(libs.xodus.entity.store)
|
||||||
// implementation("org.jetbrains.xodus:dnq:2.0.0")
|
// implementation("org.jetbrains.xodus:dnq:2.0.0")
|
||||||
|
|
||||||
testImplementation(spclibs.kotlinx.coroutines.test)
|
}
|
||||||
|
|
||||||
|
jvmTest{
|
||||||
|
implementation(spclibs.kotlinx.coroutines.test)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
readme {
|
readme {
|
||||||
maturity = space.kscience.gradle.Maturity.PROTOTYPE
|
maturity = space.kscience.gradle.Maturity.PROTOTYPE
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import space.kscience.gradle.Maturity
|
import space.kscience.gradle.Maturity
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("space.kscience.gradle.jvm")
|
id("space.kscience.gradle.mpp")
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -9,10 +9,13 @@ description = """
|
|||||||
ZMQ client endpoint for Magix
|
ZMQ client endpoint for Magix
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
|
|
||||||
dependencies {
|
kscience {
|
||||||
|
jvm()
|
||||||
|
jvmMain {
|
||||||
api(projects.magix.magixApi)
|
api(projects.magix.magixApi)
|
||||||
api("org.slf4j:slf4j-api:2.0.6")
|
api("org.slf4j:slf4j-api:2.0.6")
|
||||||
api("org.zeromq:jeromq:0.5.3")
|
api("org.zeromq:jeromq:0.5.3")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
readme {
|
readme {
|
||||||
|
@ -4,7 +4,6 @@ import kotlinx.coroutines.*
|
|||||||
import kotlinx.coroutines.flow.Flow
|
import kotlinx.coroutines.flow.Flow
|
||||||
import kotlinx.coroutines.flow.launchIn
|
import kotlinx.coroutines.flow.launchIn
|
||||||
import kotlinx.coroutines.flow.onEach
|
import kotlinx.coroutines.flow.onEach
|
||||||
import kotlinx.serialization.decodeFromString
|
|
||||||
import kotlinx.serialization.encodeToString
|
import kotlinx.serialization.encodeToString
|
||||||
import org.slf4j.LoggerFactory
|
import org.slf4j.LoggerFactory
|
||||||
import org.zeromq.SocketType
|
import org.zeromq.SocketType
|
Loading…
Reference in New Issue
Block a user