|
16 | 16 | #include <url_launcher_linux/url_launcher_plugin.h>
|
17 | 17 |
|
18 | 18 | void fl_register_plugins(FlPluginRegistry* registry) {
|
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); |
| 19 | + g_autoptr(FlPluginRegistrar) bitsdojo_window_linux_registrar = |
| 20 | + fl_plugin_registry_get_registrar_for_plugin(registry, "BitsdojoWindowPlugin"); |
| 21 | + bitsdojo_window_plugin_register_with_registrar(bitsdojo_window_linux_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) tray_manager_registrar = |
| 38 | + fl_plugin_registry_get_registrar_for_plugin(registry, "TrayManagerPlugin"); |
| 39 | + tray_manager_plugin_register_with_registrar(tray_manager_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); |
53 | 43 | }
|
0 commit comments