Clean up unused code

Mostly remnants of iOS porting, where some things were temporarily in
typescript but became shared kotlin
This commit is contained in:
James Babcock committed 2026-09-30 13:54:50 -07:00
1 parent 2c088378bd
commit 7d8f03ffe5
18 files changed
+66 -644

No files matched your search

-4
View File
@@ -359,10 +359,6 @@
"java": "com/faceclaw/app/FaceclawSseRequest.java",
"kotlin": "App_Resources/Android/src/main/java/com/faceclaw/app/FaceclawSseRequest.kt"
},
{
"java": "com/faceclaw/app/FaceclawSystemStatusIconProvider.java",
"kotlin": "App_Resources/Android/src/main/java/com/faceclaw/app/FaceclawSystemStatusIconProvider.kt"
},
{
"java": "com/faceclaw/app/FaceclawVoiceController.java",
"kotlin": "App_Resources/Android/src/main/java/com/faceclaw/app/FaceclawVoiceController.kt"
@@ -1,35 +0,0 @@
package com.faceclaw.shared
/** NativeScript implements this Kotlin-owned contract in TypeScript. */
interface KotlinBridgeListener {
fun transform(message: String): String
}
/**
* Portable Kotlin at the same commonMain source path used by ios-port. Calls and callbacks are
* synchronous on the caller's thread. The listener is used only during roundTrip and is never
* retained.
*/
class KotlinBridge {
fun platform(): String = PlatformInfo.name
fun threadName(): String = PlatformInfo.threadName()
fun isMainThread(): Boolean = PlatformInfo.isMainThread()
fun greet(name: String): String = "Hello, $name, from Kotlin"
fun roundTrip(message: String, listener: KotlinBridgeListener): String {
val reply = listener.transform("Kotlin received: $message")
// Consume the TypeScript return value, then return it across the bridge.
return "Kotlin received callback: $reply"
}
}
internal expect object PlatformInfo {
val name: String
fun threadName(): String
fun isMainThread(): Boolean
}
@@ -0,0 +1,9 @@
package com.faceclaw.shared
internal expect object PlatformInfo {
val name: String
fun threadName(): String
fun isMainThread(): Boolean
}