// Opens the native library (lib/smol -> fumi-core) the app links against. // Android bundles the cdylib under its plain soname; Linux loads the built // artifact from the checkout in dev/test and the bundle dir in release. import "dart:ffi"; import "dart:io"; DynamicLibrary openSmolLibrary() { if (Platform.isAndroid) { return DynamicLibrary.open("libsmol_mail_native.so"); } return DynamicLibrary.open("native/target/release/libsmol_mail_native.so"); }