Skip to content

Commit e0a979b

Browse files
authored
Bump Spotless, atomicfu, chasm (#233)
1 parent 151d051 commit e0a979b

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
/captures
1010
.externalNativeBuild
1111
.cxx
12+
.konan
1213
local.properties

build-logic/project/lint/src/main/kotlin/spotless.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ spotless {
3636

3737
trimTrailingWhitespace()
3838
endWithNewline()
39-
indentWithSpaces(2)
39+
leadingTabsToSpaces(2)
4040
}
4141
format("toml") {
4242
target(rootDir.filter { it.name.endsWith(".toml") })
4343

4444
trimTrailingWhitespace()
4545
endWithNewline()
46-
indentWithSpaces(2)
46+
leadingTabsToSpaces(2)
4747
}
4848
format("markdown") {
4949
target(rootDir.filter { it.name.endsWith(".md") || it.name.endsWith(".markdown") })

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ androidx-room26 = "2.6.1"
1212
androidx-test = "1.6.2"
1313
androidx-test-core = "1.6.1"
1414
androidx-test-rules = "1.6.1"
15-
atomicfu = "0.26.1"
15+
atomicfu = "0.27.0"
1616
arrow = "2.0.0"
1717
assertk = "0.28.1"
18-
chasm = "0.9.4"
18+
chasm = "0.9.42"
1919
chicory = "1.0.0"
2020
desugar_jdk_libs = "2.1.4"
2121
detekt = "1.23.7"
@@ -30,7 +30,7 @@ kotlinx-datetime = "0.6.1"
3030
kotlinx-io ="0.6.0"
3131
kermit = "2.0.5"
3232
ksp = "2.1.0-1.0.29"
33-
mockk = "1.13.14"
33+
mockk = "1.13.16"
3434
spotless = "7.0.0"
3535
sqlite-wasm-binary = "0.3"
3636
wasi-emscripten-host = "0.2"

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

settings.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ buildscript {
1515
dependencies {
1616
classpath("androidx.room:androidx.room.gradle.plugin:2.7.0-alpha12")
1717
classpath("com.android.tools.build:gradle:8.7.3")
18-
classpath("com.diffplug.spotless:spotless-plugin-gradle:7.0.0.BETA4")
18+
classpath("com.diffplug.spotless:spotless-plugin-gradle:7.0.0")
1919
classpath("com.google.devtools.ksp:symbol-processing-gradle-plugin:2.1.0-1.0.29")
2020
classpath("com.saveourtool.diktat:diktat-gradle-plugin:2.0.0")
2121
classpath("io.gitlab.arturbosch.detekt:detekt-formatting:1.23.7")
2222
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0")
23-
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.26.1")
23+
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.27.0")
2424
}
2525
}
2626

sqlite-embedder-chasm/src/commonMain/kotlin/host/ChasmInstanceBuilder.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import at.released.weh.host.EmbedderHost
1212
import at.released.weh.wasm.core.WasmModules.ENV_MODULE_NAME
1313
import at.released.weh.wasm.core.memory.WASM_MEMORY_DEFAULT_MAX_PAGES
1414
import at.released.weh.wasm.core.memory.WASM_MEMORY_PAGE_SIZE
15-
import com.github.michaelbull.result.getOrThrow
1615
import io.github.charlietap.chasm.ast.type.Limits
1716
import io.github.charlietap.chasm.ast.type.SharedStatus.Unshared
1817
import io.github.charlietap.chasm.embedding.error.ChasmError.DecodeError
@@ -129,9 +128,7 @@ internal class ChasmInstanceBuilder(
129128
callbackHostFunctions: List<ChasmImport>,
130129
): SqliteCallbackFunctionIndexes {
131130
val tableAddress: Table = instance.instance.tableAddresses[0]
132-
val table: TableInstance = store.store.table(tableAddress).getOrThrow {
133-
ChasmException("Can not get table $tableAddress")
134-
}
131+
val table: TableInstance = store.store.table(tableAddress)
135132
val oldSize = table.elements.size
136133
table.grow(
137134
callbackHostFunctions.size,

0 commit comments

Comments
 (0)