From 6b5f990bfee4a15e09a91b0fe8c220cea67dfc90 Mon Sep 17 00:00:00 2001 From: Ugljesa Jovanovic Date: Sun, 14 Jul 2024 18:56:44 +0200 Subject: [PATCH] Spotless, test dep, just browser --- bignum-serialization-kotlinx/build.gradle.kts | 2 -- bignum/build.gradle.kts | 6 ++++++ .../kotlin/com/ionspin/kotlin/bignum/integer/BigInteger.kt | 1 - .../kotlin/bignum/integer/PlatformWorkarounds.wasmWasi.kt | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/bignum-serialization-kotlinx/build.gradle.kts b/bignum-serialization-kotlinx/build.gradle.kts index 35005781..10fc3770 100644 --- a/bignum-serialization-kotlinx/build.gradle.kts +++ b/bignum-serialization-kotlinx/build.gradle.kts @@ -113,8 +113,6 @@ kotlin { mingwX64() wasmJs { browser() - this.applyBinaryen() - this.d8() } wasmWasi() diff --git a/bignum/build.gradle.kts b/bignum/build.gradle.kts index e4fd5eea..1553f6d3 100644 --- a/bignum/build.gradle.kts +++ b/bignum/build.gradle.kts @@ -147,6 +147,12 @@ kotlin { implementation(kotlin(Deps.Js.test)) } + val wasmJsTest by getting { + dependencies { + implementation(kotlin(Deps.WasmJs.test)) + } + } + all { languageSettings.enableLanguageFeature("InlineClasses") languageSettings.optIn("expect-actual-classes") diff --git a/bignum/src/commonMain/kotlin/com/ionspin/kotlin/bignum/integer/BigInteger.kt b/bignum/src/commonMain/kotlin/com/ionspin/kotlin/bignum/integer/BigInteger.kt index f291acf8..312d909e 100644 --- a/bignum/src/commonMain/kotlin/com/ionspin/kotlin/bignum/integer/BigInteger.kt +++ b/bignum/src/commonMain/kotlin/com/ionspin/kotlin/bignum/integer/BigInteger.kt @@ -27,7 +27,6 @@ import com.ionspin.kotlin.bignum.decimal.BigDecimal import com.ionspin.kotlin.bignum.integer.base63.array.BigInteger63Arithmetic import com.ionspin.kotlin.bignum.integer.base63.array.BigInteger63Arithmetic.compareTo import com.ionspin.kotlin.bignum.modular.ModularBigInteger -import kotlin.math.ceil import kotlin.math.floor import kotlin.math.log10 diff --git a/bignum/src/wasmWasiMain/kotlin/com/ionspin/kotlin/bignum/integer/PlatformWorkarounds.wasmWasi.kt b/bignum/src/wasmWasiMain/kotlin/com/ionspin/kotlin/bignum/integer/PlatformWorkarounds.wasmWasi.kt index de12f094..30f38167 100644 --- a/bignum/src/wasmWasiMain/kotlin/com/ionspin/kotlin/bignum/integer/PlatformWorkarounds.wasmWasi.kt +++ b/bignum/src/wasmWasiMain/kotlin/com/ionspin/kotlin/bignum/integer/PlatformWorkarounds.wasmWasi.kt @@ -5,4 +5,4 @@ actual object RuntimePlatform { * We need to know if we are running on a platform that doesn't know how to tell decimal and integer apart. */ actual fun currentPlatform(): Platform = Platform.WASMJS -} \ No newline at end of file +}