diff --git a/CHANGELOG.md b/CHANGELOG.md index 50422a6..a5af7e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ * @LastEditTime: 2020-12-02 11:36:40 --> +## 0.2.7 + +* fix error in ios build. + ## 0.2.6 * fix stack overflow in jsToCString. diff --git a/README.md b/README.md index a71c44f..a03d9af 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,9 @@ --> # flutter_qjs +![Pub](https://img.shields.io/pub/v/flutter_qjs.svg) +![Test](https://github.com/ekibun/flutter_qjs/workflows/Test/badge.svg) + This plugin is a simple js engine for flutter using the `quickjs` project with `dart:ffi`. Plugin currently supports all the platforms except web! ## Getting Started diff --git a/example/pubspec.lock b/example/pubspec.lock index d994e83..3437c61 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -82,7 +82,7 @@ packages: path: ".." relative: true source: path - version: "0.2.6" + version: "0.2.7" flutter_test: dependency: "direct dev" description: flutter diff --git a/lib/ffi.dart b/lib/ffi.dart index c0fe8bd..18ac833 100644 --- a/lib/ffi.dart +++ b/lib/ffi.dart @@ -59,7 +59,7 @@ final DynamicLibrary qjsLib = Platform.environment['FLUTTER_TEST'] == 'true' ? DynamicLibrary.open("flutter_qjs_plugin.dll") : Platform.isAndroid ? DynamicLibrary.open("libqjs.so") - : DynamicLibrary.process()); + : DynamicLibrary.process()); /// JSValue *jsThrowInternalError(JSContext *ctx, char *message) final Pointer Function( diff --git a/pubspec.yaml b/pubspec.yaml index ea53c28..5fedda0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_qjs description: This plugin is a simple js engine for flutter using the `quickjs` project. Plugin currently supports all the platforms except web! -version: 0.2.6 +version: 0.2.7 homepage: https://github.com/ekibun/flutter_qjs environment: diff --git a/test/flutter_qjs_test.dart b/test/flutter_qjs_test.dart index b8042a9..50b8cfc 100644 --- a/test/flutter_qjs_test.dart +++ b/test/flutter_qjs_test.dart @@ -48,8 +48,11 @@ void main() async { var cmakePath = "cmake"; if (Platform.isWindows) { var vsDir = Directory("C:/Program Files (x86)/Microsoft Visual Studio/"); - vsDir = (vsDir.listSync().firstWhere((e) => e is Directory) as Directory).listSync().last; - cmakePath = vsDir.path + "/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe"; + vsDir = (vsDir.listSync().firstWhere((e) => e is Directory) as Directory) + .listSync() + .last as Directory; + cmakePath = vsDir.path + + "/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe"; } final buildDir = "./build"; var result = Process.runSync(