|
6 | 6 |
|
7 | 7 | #include "generated_plugin_registrant.h"
|
8 | 8 |
|
9 |
| -#include <bitsdojo_window_linux_v3/bitsdojo_window_plugin.h> |
| 9 | +#include <bitsdojo_window_linux/bitsdojo_window_plugin.h> |
10 | 10 | #include <desktop_window/desktop_window_plugin.h>
|
11 | 11 | #include <file_selector_linux/file_selector_plugin.h>
|
12 | 12 | #include <flutter_js/flutter_js_plugin.h>
|
13 | 13 | #include <flutter_secure_storage_linux/flutter_secure_storage_linux_plugin.h>
|
14 | 14 | #include <platform_device_id_linux/platform_device_id_linux_plugin.h>
|
15 |
| -#include <system_tray/system_tray_plugin.h> |
| 15 | +#include <tray_manager/tray_manager_plugin.h> |
16 | 16 | #include <url_launcher_linux/url_launcher_plugin.h>
|
17 | 17 |
|
18 | 18 | void fl_register_plugins(FlPluginRegistry* registry) {
|
19 |
| - g_autoptr(FlPluginRegistrar) bitsdojo_window_linux_v3_registrar = |
20 |
| - fl_plugin_registry_get_registrar_for_plugin(registry, "BitsdojoWindowPlugin"); |
21 |
| - bitsdojo_window_plugin_register_with_registrar(bitsdojo_window_linux_v3_registrar); |
22 |
| - g_autoptr(FlPluginRegistrar) desktop_window_registrar = |
23 |
| - fl_plugin_registry_get_registrar_for_plugin(registry, "DesktopWindowPlugin"); |
24 |
| - desktop_window_plugin_register_with_registrar(desktop_window_registrar); |
25 |
| - g_autoptr(FlPluginRegistrar) file_selector_linux_registrar = |
26 |
| - fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin"); |
27 |
| - file_selector_plugin_register_with_registrar(file_selector_linux_registrar); |
28 |
| - g_autoptr(FlPluginRegistrar) flutter_js_registrar = |
29 |
| - fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterJsPlugin"); |
30 |
| - flutter_js_plugin_register_with_registrar(flutter_js_registrar); |
31 |
| - g_autoptr(FlPluginRegistrar) flutter_secure_storage_linux_registrar = |
32 |
| - fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterSecureStorageLinuxPlugin"); |
33 |
| - flutter_secure_storage_linux_plugin_register_with_registrar(flutter_secure_storage_linux_registrar); |
34 |
| - g_autoptr(FlPluginRegistrar) platform_device_id_linux_registrar = |
35 |
| - fl_plugin_registry_get_registrar_for_plugin(registry, "PlatformDeviceIdLinuxPlugin"); |
36 |
| - platform_device_id_linux_plugin_register_with_registrar(platform_device_id_linux_registrar); |
37 |
| - g_autoptr(FlPluginRegistrar) system_tray_registrar = |
38 |
| - fl_plugin_registry_get_registrar_for_plugin(registry, "SystemTrayPlugin"); |
39 |
| - system_tray_plugin_register_with_registrar(system_tray_registrar); |
40 |
| - g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = |
41 |
| - fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); |
42 |
| - url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); |
| 19 | + g_autoptr(FlPluginRegistrar) |
| 20 | + bitsdojo_window_linux_registrar = |
| 21 | + fl_plugin_registry_get_registrar_for_plugin(registry, "BitsdojoWindowPlugin"); |
| 22 | + bitsdojo_window_plugin_register_with_registrar(bitsdojo_window_linux_registrar); |
| 23 | + g_autoptr(FlPluginRegistrar) |
| 24 | + desktop_window_registrar = |
| 25 | + fl_plugin_registry_get_registrar_for_plugin(registry, "DesktopWindowPlugin"); |
| 26 | + desktop_window_plugin_register_with_registrar(desktop_window_registrar); |
| 27 | + g_autoptr(FlPluginRegistrar) |
| 28 | + file_selector_linux_registrar = |
| 29 | + fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin"); |
| 30 | + file_selector_plugin_register_with_registrar(file_selector_linux_registrar); |
| 31 | + g_autoptr(FlPluginRegistrar) |
| 32 | + flutter_js_registrar = |
| 33 | + fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterJsPlugin"); |
| 34 | + flutter_js_plugin_register_with_registrar(flutter_js_registrar); |
| 35 | + g_autoptr(FlPluginRegistrar) |
| 36 | + flutter_secure_storage_linux_registrar = |
| 37 | + fl_plugin_registry_get_registrar_for_plugin(registry, |
| 38 | + "FlutterSecureStorageLinuxPlugin"); |
| 39 | + flutter_secure_storage_linux_plugin_register_with_registrar( |
| 40 | + flutter_secure_storage_linux_registrar); |
| 41 | + g_autoptr(FlPluginRegistrar) |
| 42 | + platform_device_id_linux_registrar = |
| 43 | + fl_plugin_registry_get_registrar_for_plugin(registry, "PlatformDeviceIdLinuxPlugin"); |
| 44 | + platform_device_id_linux_plugin_register_with_registrar(platform_device_id_linux_registrar); |
| 45 | + g_autoptr(FlPluginRegistrar) |
| 46 | + tray_manager_registrar = |
| 47 | + fl_plugin_registry_get_registrar_for_plugin(registry, "TrayManagerPlugin"); |
| 48 | + tray_manager_plugin_register_with_registrar(tray_manager_registrar); |
| 49 | + g_autoptr(FlPluginRegistrar) |
| 50 | + url_launcher_linux_registrar = |
| 51 | + fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); |
| 52 | + url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); |
43 | 53 | }
|
0 commit comments