Add wasm and native targets to core modules
This commit is contained in:
parent
c12f1ce1cd
commit
89d78c43bb
@ -8,7 +8,7 @@ plugins {
|
||||
|
||||
allprojects {
|
||||
group = "space.kscience"
|
||||
version = "0.4.0-dev-5"
|
||||
version = "0.4.0-dev-6"
|
||||
repositories{
|
||||
google()
|
||||
}
|
||||
|
@ -10,6 +10,8 @@ description = """
|
||||
kscience{
|
||||
jvm()
|
||||
js()
|
||||
native()
|
||||
wasm()
|
||||
useCoroutines()
|
||||
useSerialization()
|
||||
commonMain {
|
||||
|
@ -13,6 +13,7 @@ kscience {
|
||||
jvm()
|
||||
js()
|
||||
native()
|
||||
wasm()
|
||||
useCoroutines()
|
||||
useSerialization{
|
||||
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()
|
||||
js()
|
||||
native()
|
||||
wasm()
|
||||
useCoroutines()
|
||||
useSerialization {
|
||||
json()
|
||||
|
@ -13,6 +13,7 @@ kscience {
|
||||
jvm()
|
||||
js()
|
||||
native()
|
||||
wasm()
|
||||
useCoroutines()
|
||||
useSerialization{
|
||||
json()
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user