mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 05:27:23 +00:00
update ios and macos
This commit is contained in:
@@ -1,19 +0,0 @@
|
|||||||
import Cocoa
|
|
||||||
import FlutterMacOS
|
|
||||||
|
|
||||||
public class FlutterQjsPlugin: NSObject, FlutterPlugin {
|
|
||||||
public static func register(with registrar: FlutterPluginRegistrar) {
|
|
||||||
let channel = FlutterMethodChannel(name: "flutter_qjs", binaryMessenger: registrar.messenger)
|
|
||||||
let instance = FlutterQjsPlugin()
|
|
||||||
registrar.addMethodCallDelegate(instance, channel: channel)
|
|
||||||
}
|
|
||||||
|
|
||||||
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
|
||||||
switch call.method {
|
|
||||||
case "getPlatformVersion":
|
|
||||||
result("macOS " + ProcessInfo.processInfo.operatingSystemVersionString)
|
|
||||||
default:
|
|
||||||
result(FlutterMethodNotImplemented)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -14,7 +14,7 @@ This plugin is a simple js engine for flutter using the `quickjs` project. Plugi
|
|||||||
s.author = { 'ekibun' => 'soekibun@gmail.com' }
|
s.author = { 'ekibun' => 'soekibun@gmail.com' }
|
||||||
s.source = { :path => '.' }
|
s.source = { :path => '.' }
|
||||||
s.compiler_flags = '-DDUMP_LEAKS'
|
s.compiler_flags = '-DDUMP_LEAKS'
|
||||||
s.source_files = ['Classes/**/*', 'cxx/*.{c,cpp}']
|
s.source_files = ['cxx/*.{c,cpp}']
|
||||||
s.dependency 'FlutterMacOS'
|
s.dependency 'FlutterMacOS'
|
||||||
|
|
||||||
s.platform = :osx, '10.11'
|
s.platform = :osx, '10.11'
|
||||||
|
@@ -43,9 +43,9 @@ flutter:
|
|||||||
pluginClass: FlutterQjsPlugin
|
pluginClass: FlutterQjsPlugin
|
||||||
package: soko.ekibun.flutter_qjs
|
package: soko.ekibun.flutter_qjs
|
||||||
macos:
|
macos:
|
||||||
pluginClass: FlutterQjsPlugin
|
ffiPlugin: true
|
||||||
ios:
|
ios:
|
||||||
pluginClass: FlutterQjsPlugin
|
ffiPlugin: true
|
||||||
# -------------------
|
# -------------------
|
||||||
|
|
||||||
# To add assets to your plugin package, add an assets section, like this:
|
# To add assets to your plugin package, add an assets section, like this:
|
||||||
|
Reference in New Issue
Block a user