|
@@ -13,21 +13,21 @@ final DynamicLibrary _dl = _open();
|
|
|
final DynamicLibrary dl = _dl;
|
|
|
DynamicLibrary _open() {
|
|
|
if (Platform.environment.containsKey('FLUTTER_TEST')) {
|
|
|
- final prefix = "${Directory.current.path}/.appflowy_dev";
|
|
|
+ final prefix = "${Directory.current.path}/.sandbox";
|
|
|
if (Platform.isLinux) return DynamicLibrary.open('${prefix}/libdart_ffi.so');
|
|
|
if (Platform.isAndroid) return DynamicLibrary.open('${prefix}/libdart_ffi.so');
|
|
|
if (Platform.isMacOS) return DynamicLibrary.open('${prefix}/libdart_ffi.dylib');
|
|
|
if (Platform.isIOS) return DynamicLibrary.open('${prefix}/libdart_ffi.dylib');
|
|
|
if (Platform.isWindows) return DynamicLibrary.open('${prefix}/dart_ffi.dll');
|
|
|
- throw UnsupportedError('This platform is not supported.');
|
|
|
} else {
|
|
|
if (Platform.isLinux) return DynamicLibrary.open('libdart_ffi.so');
|
|
|
if (Platform.isAndroid) return DynamicLibrary.open('libdart_ffi.so');
|
|
|
if (Platform.isMacOS) return DynamicLibrary.executable();
|
|
|
if (Platform.isIOS) return DynamicLibrary.executable();
|
|
|
if (Platform.isWindows) return DynamicLibrary.open('dart_ffi.dll');
|
|
|
- throw UnsupportedError('This platform is not supported.');
|
|
|
}
|
|
|
+
|
|
|
+ throw UnsupportedError('This platform is not supported.');
|
|
|
}
|
|
|
|
|
|
/// C function `async_event`.
|