2021-01-06 17:01:37 +03:00
|
|
|
plugins {
|
2022-09-04 20:59:30 +03:00
|
|
|
id("space.kscience.gradle.mpp")
|
|
|
|
}
|
|
|
|
|
|
|
|
kscience {
|
2023-02-03 19:32:53 +03:00
|
|
|
jvm()
|
|
|
|
js()
|
2022-09-04 20:59:30 +03:00
|
|
|
native()
|
2021-01-06 17:01:37 +03:00
|
|
|
|
2023-04-09 10:55:58 +03:00
|
|
|
wasm{
|
|
|
|
browser {
|
|
|
|
testTask {
|
|
|
|
useKarma {
|
|
|
|
this.webpackConfig.experiments.add("topLevelAwait")
|
|
|
|
useChromeHeadless()
|
|
|
|
useConfigDirectory(project.projectDir.resolve("karma.config.d").resolve("wasm"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
wasmTest{
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-03 19:32:53 +03:00
|
|
|
dependencies {
|
|
|
|
api(projects.kmathCore)
|
2021-01-06 17:01:37 +03:00
|
|
|
}
|
2023-04-09 10:55:58 +03:00
|
|
|
|
|
|
|
testDependencies {
|
|
|
|
implementation(projects.testUtils)
|
|
|
|
}
|
2021-01-06 17:01:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
readme {
|
|
|
|
description = "Complex numbers and quaternions."
|
2022-07-29 15:58:02 +03:00
|
|
|
maturity = space.kscience.gradle.Maturity.PROTOTYPE
|
2021-01-06 17:01:37 +03:00
|
|
|
propertyByTemplate("artifact", rootProject.file("docs/templates/ARTIFACT-TEMPLATE.md"))
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "complex",
|
2021-03-16 22:46:22 +03:00
|
|
|
ref = "src/commonMain/kotlin/space/kscience/kmath/complex/Complex.kt"
|
2022-09-04 20:59:30 +03:00
|
|
|
) {
|
2022-06-13 11:17:41 +03:00
|
|
|
"Complex numbers operations"
|
|
|
|
}
|
2021-01-06 17:01:37 +03:00
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "quaternion",
|
2021-03-16 22:46:22 +03:00
|
|
|
ref = "src/commonMain/kotlin/space/kscience/kmath/complex/Quaternion.kt"
|
2022-09-04 20:59:30 +03:00
|
|
|
) {
|
2022-06-13 11:17:41 +03:00
|
|
|
"Quaternions and their composition"
|
|
|
|
}
|
2021-01-06 17:01:37 +03:00
|
|
|
}
|