This commit is contained in:
ekibun
2021-01-22 16:33:25 +08:00
parent 257dfd9e96
commit c7da8abb67
6 changed files with 15 additions and 5 deletions

View File

@@ -6,6 +6,10 @@
* @LastEditTime: 2020-12-02 11:36:40 * @LastEditTime: 2020-12-02 11:36:40
--> -->
## 0.2.7
* fix error in ios build.
## 0.2.6 ## 0.2.6
* fix stack overflow in jsToCString. * fix stack overflow in jsToCString.

View File

@@ -7,6 +7,9 @@
--> -->
# flutter_qjs # 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! 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 ## Getting Started

View File

@@ -82,7 +82,7 @@ packages:
path: ".." path: ".."
relative: true relative: true
source: path source: path
version: "0.2.6" version: "0.2.7"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter

View File

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

View File

@@ -1,6 +1,6 @@
name: flutter_qjs 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! 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 homepage: https://github.com/ekibun/flutter_qjs
environment: environment:

View File

@@ -48,8 +48,11 @@ void main() async {
var cmakePath = "cmake"; var cmakePath = "cmake";
if (Platform.isWindows) { if (Platform.isWindows) {
var vsDir = Directory("C:/Program Files (x86)/Microsoft Visual Studio/"); var vsDir = Directory("C:/Program Files (x86)/Microsoft Visual Studio/");
vsDir = (vsDir.listSync().firstWhere((e) => e is Directory) as Directory).listSync().last; vsDir = (vsDir.listSync().firstWhere((e) => e is Directory) as Directory)
cmakePath = vsDir.path + "/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe"; .listSync()
.last as Directory;
cmakePath = vsDir.path +
"/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe";
} }
final buildDir = "./build"; final buildDir = "./build";
var result = Process.runSync( var result = Process.runSync(