flutter_olm
2.0.0, released 2 years ago by famedly.com
Builds the native Olm library for Android and iOS to be used via dart:ffi.
What it does
Compiles the Olm cryptographic library from source for mobile platforms and packages it as a Flutter plugin. The resulting binaries can be accessed from Dart code through FFI calls.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need Olm encryption in a Flutter app on Android or iOS
- You prefer a native library compiled for the target platform rather than a pure‑Dart implementation
Skip it when
- You target web, desktop, or other platforms not supported
- A pure‑Dart Olm binding meets your needs
Strengths
- Provides up‑to‑date native Olm builds
- Supports both Android and iOS
- Integrates with Dart FFI for high performance
Weaknesses
- Limited to Android and iOS platforms
- Requires native build steps and proper Gradle/CMake setup
- AGPL‑3.0 license may be restrictive for some projects
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 0
Add the plugin to pubspec, run flutter pub get, ensure Android Gradle 8.4.1 and iOS CMake are configured, then load the library via dart:ffi in your code.
Alternatives
Packages that do the same job and could replace flutter_olm.
- hooks
Dart API for the JSON-based protocol for package build and link hooks.
86Compare - native_toolchain_cmake
A library to invoke and build CMake projects for Dart Native Assets.
78Compare - jni
Provides Dart/Flutter bindings to call native Java code via JNI.
90Compare - json_schema_builder
Build and validate JSON Schemas in Dart with a fluent, type‑safe API
87Compare