mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 13:27:24 +00:00
remove C++ std limitation for linux and android
This commit is contained in:
@@ -30,6 +30,7 @@ target_sources(${JNI_LIB_NAME} PUBLIC
|
||||
${QUICK_JS_LIB_DIR}/libunicode.c
|
||||
${QUICK_JS_LIB_DIR}/quickjs.c
|
||||
)
|
||||
target_compile_features(${JNI_LIB_NAME} PUBLIC cxx_std_17)
|
||||
|
||||
# Searches for a specified prebuilt library and stores the path as a
|
||||
# variable. Because CMake includes system libraries in the search path by
|
||||
|
@@ -29,7 +29,6 @@ class FlutterQjsPlugin: FlutterPlugin, MethodCallHandler {
|
||||
override fun onMethodCall(call: MethodCall, result: Result) {
|
||||
if (call.method == "createEngine") {
|
||||
val engine: Long = JniBridge.instance.createEngine(channelwrapper)
|
||||
println(engine)
|
||||
result.success(engine)
|
||||
} else if (call.method == "evaluate") {
|
||||
val engine: Long = call.argument<Long>("engine")!!
|
||||
@@ -43,7 +42,6 @@ class FlutterQjsPlugin: FlutterPlugin, MethodCallHandler {
|
||||
JniBridge.instance.call(engine, function, args, ResultWrapper(handler, result))
|
||||
} else if (call.method == "close") {
|
||||
val engine: Long = call.arguments<Long>()
|
||||
println(engine)
|
||||
JniBridge.instance.close(engine)
|
||||
result.success(null)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user