@@ -23,6 +23,8 @@ This package provides Kotlin bindings for SLIM, enabling secure messaging with:
2323```
2424kotlin/
2525├── Taskfile.yaml # Build automation tasks
26+ ├── uniffi.toml # UniFFI configuration (package name)
27+ ├── patch-bindings.sh # Post-generation patches
2628├── build.gradle.kts # Gradle build configuration
2729├── settings.gradle.kts # Gradle settings
2830├── gradle.properties # Build properties
@@ -35,6 +37,8 @@ kotlin/
3537│ ├── Group.kt # Group messaging example
3638│ └── Server.kt # SLIM server example
3739└── generated/ # UniFFI-generated code (gitignored)
40+ └── io/agntcy/slim/bindings/
41+ └── slim_bindings.kt
3842```
3943
4044## Quick Start
@@ -49,8 +53,9 @@ task generate
4953
5054This will:
51551 . Build the Rust ` slim_bindings ` library
52- 2 . Run ` uniffi-bindgen ` to generate Kotlin code
53- 3 . Copy the native library to ` generated/jniLibs/ `
56+ 2 . Run ` uniffi-bindgen ` with ` uniffi.toml ` config to generate Kotlin code in the ` io.agntcy.slim.bindings ` package
57+ 3 . Apply compatibility patches (exception message parameters, wait() method conflicts)
58+ 4 . Copy the native library to ` generated/jniLibs/ `
5459
5560### 2. Build Examples
5661
@@ -119,7 +124,7 @@ task example:group:client-2
119124
120125``` kotlin
121126import io.agntcy.slim.examples.common.*
122- import uniffi.slim_bindings .*
127+ import io.agntcy.slim.bindings .*
123128import kotlinx.coroutines.*
124129
125130suspend fun main () = coroutineScope {
0 commit comments