// Base library
implementation("io.element.android:wysiwyg:$version")
// Compose support
implementation("io.element.android:wysiwyg-compose:$version")
There are two example apps that show how to build an app using this library:
<project>/platforms/android/example-compose
contains an example app which shows how to integrate the editor into a Jetpack Compose based app.<project>/platforms/android/example-view
contains an example app which shows how to integrate the editor into a traditional View / XML layout based app.
When the bindings are generated, they point to the wrong library name:
return "uniffi_wysiwyg_composer"
We can either modify the Cargo setup to generate a library with that name, or modify the generated bindings:
return "wysiwyg_ffi"
You probably need to re-generate the bindings.
As mentioned in wysiwyg-ffi's README, you might need to specify the location of the NDK you want to use by adding .cargo/config.toml
files with the right contents.