openassistant: fix crash when sending message
- Commit
c3af4998bc3927dd8626ba8eb393ef879ab7dde0- Author
- Vayun Mathur <[email protected]>
- When
- 2026-07-20 18:03 UTC (4 months ago)
- Parents
dd48376
Diff
gradle/libs.versions.toml
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.tomlindex 0c226b5214..03b400c2c0 100644--- a/gradle/libs.versions.toml+++ b/gradle/libs.versions.toml@@ -14,6 +14,10 @@ androidxTestExtJunit = "1.3.0" # AndroidX Core & Lifecycle coreKtx = "1.19.0"+# litertlm 0.14.0 is compiled against coroutines 1.11.0 (close$default moved onto+# the SendChannel interface via -Xjvm-default=all); older versions crash its JNI+# callback with NoSuchMethodError. Request it directly so it wins conflict resolution.+kotlinxCoroutines = "1.11.0" lifecycle = "2.11.0" litertlmAndroid = "0.14.0" newpipeextractor = "v0.26.3"@@ -131,6 +135,7 @@ fhir-model = { module = "com.google.fhir:fhir-model", version.ref = "fhirModel" flatgeobuf = { module = "org.wololo:flatgeobuf", version.ref = "flatgeobuf" } kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlinGradlePlugin" } litertlm-android = { module = "com.google.ai.edge.litertlm:litertlm-android", version.ref = "litertlmAndroid" }+kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinxCoroutines" } newpipeextractor = { module = "com.github.TeamNewPipe:NewPipeExtractor", version.ref = "newpipeextractor" } reorderable = { module = "sh.calvin.reorderable:reorderable", version.ref = "reorderable" }
openassistant/build.gradle.kts
diff --git a/openassistant/build.gradle.kts b/openassistant/build.gradle.ktsindex 34024f58b1..0b030749e4 100644--- a/openassistant/build.gradle.kts+++ b/openassistant/build.gradle.kts@@ -42,6 +42,9 @@ dependencies { // ai implementation(libs.litertlm.android)+ // litertlm 0.14.0 needs kotlinx-coroutines 1.11.0 (close$default on the+ // SendChannel interface); requesting it directly wins over the transitive 1.9.0.+ implementation(libs.kotlinx.coroutines.android) // SigLIP2 image/text embedding (semantic photo search served to the photos // app) runs on ONNX Runtime; litertlm stays for the chat LLM. implementation(libs.onnxruntime.android)