From b7ff1c8abe5fec140e925423248f848bf921c16c Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Sun, 5 Mar 2023 13:37:39 +0600 Subject: [PATCH] chore: remove unnecessary plugin registrant files --- .../Flutter/GeneratedPluginRegistrant.swift | 12 ++++++++++ .../flutter/generated_plugin_registrant.cc | 11 +++++++++ .../windows/flutter/generated_plugins.cmake | 23 +++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 packages/fl_query/example/macos/Flutter/GeneratedPluginRegistrant.swift create mode 100644 packages/fl_query/example/windows/flutter/generated_plugin_registrant.cc create mode 100644 packages/fl_query/example/windows/flutter/generated_plugins.cmake diff --git a/packages/fl_query/example/macos/Flutter/GeneratedPluginRegistrant.swift b/packages/fl_query/example/macos/Flutter/GeneratedPluginRegistrant.swift new file mode 100644 index 0000000..e777c67 --- /dev/null +++ b/packages/fl_query/example/macos/Flutter/GeneratedPluginRegistrant.swift @@ -0,0 +1,12 @@ +// +// Generated file. Do not edit. +// + +import FlutterMacOS +import Foundation + +import path_provider_foundation + +func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { + PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) +} diff --git a/packages/fl_query/example/windows/flutter/generated_plugin_registrant.cc b/packages/fl_query/example/windows/flutter/generated_plugin_registrant.cc new file mode 100644 index 0000000..8b6d468 --- /dev/null +++ b/packages/fl_query/example/windows/flutter/generated_plugin_registrant.cc @@ -0,0 +1,11 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#include "generated_plugin_registrant.h" + + +void RegisterPlugins(flutter::PluginRegistry* registry) { +} diff --git a/packages/fl_query/example/windows/flutter/generated_plugins.cmake b/packages/fl_query/example/windows/flutter/generated_plugins.cmake new file mode 100644 index 0000000..b93c4c3 --- /dev/null +++ b/packages/fl_query/example/windows/flutter/generated_plugins.cmake @@ -0,0 +1,23 @@ +# +# Generated file, do not edit. +# + +list(APPEND FLUTTER_PLUGIN_LIST +) + +list(APPEND FLUTTER_FFI_PLUGIN_LIST +) + +set(PLUGIN_BUNDLED_LIBRARIES) + +foreach(plugin ${FLUTTER_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) + target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) + list(APPEND PLUGIN_BUNDLED_LIBRARIES $) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) +endforeach(plugin) + +foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) +endforeach(ffi_plugin)