Update build tools

This commit is contained in:
Alexander Nozik 2023-05-26 16:46:18 +03:00
parent 3e9d28be31
commit 65c6962544
7 changed files with 14 additions and 7 deletions

View File

@ -15,7 +15,7 @@ allprojects {
} }
group = "space.kscience" group = "space.kscience"
version = "0.3.1" version = "0.3.2-dev-1"
} }
subprojects { subprojects {

View File

@ -9,8 +9,8 @@ kotlin.native.ignoreDisabledTargets=true
org.gradle.configureondemand=true org.gradle.configureondemand=true
org.gradle.jvmargs=-Xmx4096m org.gradle.jvmargs=-Xmx4096m
toolsVersion=0.14.8-kotlin-1.8.20
org.gradle.parallel=true org.gradle.parallel=true
org.gradle.workers.max=4 org.gradle.workers.max=4
toolsVersion=0.14.8-kotlin-1.9.0-Beta
#kscience.wasm.disabled=true

View File

@ -17,7 +17,7 @@ internal class TestFeatures {
fun printNumeric() { fun printNumeric() {
val num = object : Number() { val num = object : Number() {
override fun toByte(): Byte = throw UnsupportedOperationException() override fun toByte(): Byte = throw UnsupportedOperationException()
override fun toChar(): Char = throw UnsupportedOperationException() // override fun toChar(): Char = throw UnsupportedOperationException()
override fun toDouble(): Double = throw UnsupportedOperationException() override fun toDouble(): Double = throw UnsupportedOperationException()
override fun toFloat(): Float = throw UnsupportedOperationException() override fun toFloat(): Float = throw UnsupportedOperationException()
override fun toInt(): Int = throw UnsupportedOperationException() override fun toInt(): Int = throw UnsupportedOperationException()

View File

@ -8,7 +8,6 @@
"OVERRIDING_FINAL_MEMBER", "OVERRIDING_FINAL_MEMBER",
"RETURN_TYPE_MISMATCH_ON_OVERRIDE", "RETURN_TYPE_MISMATCH_ON_OVERRIDE",
"CONFLICTING_OVERLOADS", "CONFLICTING_OVERLOADS",
"NO_EXPLICIT_VISIBILITY_IN_API_MODE_WARNING",
"PropertyName", "PropertyName",
"ClassName", "ClassName",
) )

View File

@ -6,7 +6,6 @@ kscience {
jvm() jvm()
js() js()
native() native()
wasm() wasm()
dependencies { dependencies {

View File

@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
plugins { plugins {
id("space.kscience.gradle.mpp") id("space.kscience.gradle.mpp")
} }
@ -15,3 +17,6 @@ readme {
An API and basic implementation for arranging objects in a continuous memory block. An API and basic implementation for arranging objects in a continuous memory block.
""".trimIndent() """.trimIndent()
} }
rootProject.the<NodeJsRootExtension>().versions.webpack.version = "5.76.2"
rootProject.the<NodeJsRootExtension>().nodeVersion = "20.2.0"

View File

@ -5,6 +5,8 @@
package space.kscience.kmath.memory package space.kscience.kmath.memory
import kotlin.experimental.ExperimentalNativeApi
@PublishedApi @PublishedApi
internal class NativeMemory( internal class NativeMemory(
val array: ByteArray, val array: ByteArray,
@ -26,6 +28,7 @@ internal class NativeMemory(
return NativeMemory(copy) return NativeMemory(copy)
} }
@OptIn(ExperimentalNativeApi::class)
private val reader: MemoryReader = object : MemoryReader { private val reader: MemoryReader = object : MemoryReader {
override val memory: Memory get() = this@NativeMemory override val memory: Memory get() = this@NativeMemory
@ -48,6 +51,7 @@ internal class NativeMemory(
override fun reader(): MemoryReader = reader override fun reader(): MemoryReader = reader
@OptIn(ExperimentalNativeApi::class)
private val writer: MemoryWriter = object : MemoryWriter { private val writer: MemoryWriter = object : MemoryWriter {
override val memory: Memory get() = this@NativeMemory override val memory: Memory get() = this@NativeMemory