mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 05:27:23 +00:00
v0.2.7
This commit is contained in:
@@ -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.
|
||||||
|
@@ -7,6 +7,9 @@
|
|||||||
-->
|
-->
|
||||||
# flutter_qjs
|
# flutter_qjs
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
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
|
||||||
|
@@ -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
|
||||||
|
@@ -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(
|
||||||
|
@@ -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:
|
||||||
|
@@ -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(
|
||||||
|
Reference in New Issue
Block a user