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 { allprojects {
group = "space.kscience" group = "space.kscience"
version = "0.4.0-dev-5" version = "0.4.0-dev-6"
repositories{ repositories{
google() google()
} }

View File

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

View File

@ -13,6 +13,7 @@ kscience {
jvm() jvm()
js() js()
native() native()
wasm()
useCoroutines() useCoroutines()
useSerialization{ useSerialization{
json() 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() jvm()
js() js()
native() native()
wasm()
useCoroutines() useCoroutines()
useSerialization { useSerialization {
json() json()

View File

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

View File

@ -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 {
api(projects.magix.magixApi) jvm()
implementation(libs.hivemq.mqtt.client) jvmMain {
implementation(spclibs.kotlinx.coroutines.jdk8) api(projects.magix.magixApi)
implementation(libs.hivemq.mqtt.client)
implementation(spclibs.kotlinx.coroutines.jdk8)
}
} }
readme{ readme {
maturity = space.kscience.gradle.Maturity.PROTOTYPE maturity = space.kscience.gradle.Maturity.PROTOTYPE
} }

View File

@ -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 {
api(projects.magix.magixStorage)
dependencies { implementation(libs.xodus.entity.store)
api(projects.magix.magixStorage)
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
} }

View File

@ -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 {
api(projects.magix.magixApi) jvm()
api("org.slf4j:slf4j-api:2.0.6") jvmMain {
api("org.zeromq:jeromq:0.5.3") api(projects.magix.magixApi)
api("org.slf4j:slf4j-api:2.0.6")
api("org.zeromq:jeromq:0.5.3")
}
} }
readme { readme {

View File

@ -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