update android build

This commit is contained in:
wgh19
2024-04-20 17:54:42 +08:00
parent 485b35da9d
commit 9ecfe2bf6c
23 changed files with 404 additions and 36 deletions

View File

@@ -0,0 +1,31 @@
#ifndef FLUTTER_PLUGIN_FLUTTER_QJS_PLUGIN_H_
#define FLUTTER_PLUGIN_FLUTTER_QJS_PLUGIN_H_
#include <flutter/method_channel.h>
#include <flutter/plugin_registrar_windows.h>
#include <memory>
namespace flutter_qjs {
class FlutterQjsPlugin : public flutter::Plugin {
public:
static void RegisterWithRegistrar(flutter::PluginRegistrarWindows *registrar);
FlutterQjsPlugin();
virtual ~FlutterQjsPlugin();
// Disallow copy and assign.
FlutterQjsPlugin(const FlutterQjsPlugin&) = delete;
FlutterQjsPlugin& operator=(const FlutterQjsPlugin&) = delete;
// Called when a method is called on this plugin's channel from Dart.
void HandleMethodCall(
const flutter::MethodCall<flutter::EncodableValue> &method_call,
std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
};
} // namespace flutter_qjs
#endif // FLUTTER_PLUGIN_FLUTTER_QJS_PLUGIN_H_