Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Latest commit

 

History

History
43 lines (27 loc) · 1.54 KB

File metadata and controls

43 lines (27 loc) · 1.54 KB

Matrix Rich Text Editor Android

Latest release badge

Usage

// Base library
implementation("io.element.android:wysiwyg:$version")

// Compose support
implementation("io.element.android:wysiwyg-compose:$version")

Examples

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.

Troubleshooting

UnsatisfiedLinkError

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"

Can't find function some_mangled_name_2345_my_class_new()

You probably need to re-generate the bindings.

Cargo crashing while trying to 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.