dynamic_library 0.8.0 dynamic_library: ^0.8.0 copied to clipboard
Dart library for improving the process of loading dynamic libraries (with OS-specific load checks)
dynamic_library #
This Dart package is focused on providing better experiences related to DynamicLibrary
usage in
Dart and Flutter projects. This package is used internally at [Pieces.app][Pieces.app] and [Runtime.dev][Runtime.dev]
We considered using the dylib package but found it insufficient to provide descriptive errors when working with dynamic libraries on Dart and Flutter Applications. Dynamic libraries could fail to load for any one of the following reasons:
- The file doesn't exist
- The directory doesn't exist that we are searching in
- The dynamic library is missing dependencies
The implementation of DynamicLibrary
in the dart standard library fails to say essentially anything other
than 'DynamicLibrary fails to load'. When deploying multiple dynamic libraries across multiple platforms, we really need
traceability to know if the dynamic library doesn't exist, isn't in the right place or is missing dependencies to
better inform the developer on proper debugging steps or work scope estimation.
Usage #
TODO: Include snippets and examples
Note: It is recommended to not use searchPaths
when using this library in compiled applications as there are a
lot of cross-platform variables to consider in your application. This searchPaths
parameter is more useful for
running dart code in a development environment (with binaries in various locations), instead of in production
environments.
Contributing #
This package is maintained on Github