Kotlin on iOS

This commit is contained in:
James Babcock committed 2026-09-18 19:59:13 -07:00
1 parent 63b2a7d545
commit bc8e80c533
12 files changed
+149 -57

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
/** Exported native API normalized across Java interfaces and Obj-C protocols. */
export interface KotlinBridge {
platform(): string;
threadName(): string;
isMainThread(): boolean;
greet(name: string): string;
/** Synchronous callback; must not throw across the native boundary. */
roundTrip(message: string, transform: (message: string) => string): string;
}
export function createKotlinBridge(): KotlinBridge;