ffi for ios (simulator)

This commit is contained in:
ekibun
2020-09-25 01:12:46 -07:00
parent 343c1ffd30
commit 7a48fac570
8 changed files with 128 additions and 3 deletions

View File

@@ -59,7 +59,9 @@ final DynamicLibrary qjsLib = Platform.environment['FLUTTER_TEST'] == 'true'
? DynamicLibrary.open("flutter_qjs_plugin.dll")
: Platform.isAndroid
? DynamicLibrary.open("libqjs.so")
: DynamicLibrary.process());
: Platform.isIOS
? DynamicLibrary.open("ffiquickjs.framework/ffiquickjs")
: DynamicLibrary.process());
/// JSValue *jsThrowInternalError(JSContext *ctx, char *message)
final Pointer Function(