Skip to content

Agent Mesh

mobile: name the Kotlin module explicitly for the appfunctions compiler

Antonio Ojeabd58efb8534f
diff --git a/mobile/sam-node-app/android/app/build.gradle.kts b/mobile/sam-node-app/android/app/build.gradle.kts
index d578237c..3333bfe9 100644
--- a/mobile/sam-node-app/android/app/build.gradle.kts
+++ b/mobile/sam-node-app/android/app/build.gradle.kts
@@ -76,6 +76,10 @@ android {
kotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
+ // Kotlin 2.4 defaults the module name to "{group}:{project}"; the
+ // appfunctions compiler names a generated class after it, and ':'
+ // is not legal in an identifier.
+ moduleName = "sam_node_app"
}
}