Skip to content

Commit 5a4def4

Browse files
fix: resolve cross-platform startup crashes (issues #24, #25)
- Add missing frb_generated_boilerplate_io macros (frb_get_rust_content_hash symbol) - Fix Linux -Werror blocking tray_manager deprecated API build - Fix Windows rust_builder wrong relative path (../../../../../../rust -> ../../rust) - Fix Windows rust_builder empty symbol name for linker INCLUDE directive - Add /wd4996 to suppress deprecation warnings on Windows
1 parent 3380d96 commit 5a4def4

17 files changed

Lines changed: 2446 additions & 27 deletions

lib/l10n/app_localizations.dart

Lines changed: 1160 additions & 0 deletions
Large diffs are not rendered by default.

lib/l10n/app_localizations_en.dart

Lines changed: 567 additions & 0 deletions
Large diffs are not rendered by default.

lib/l10n/app_localizations_es.dart

Lines changed: 576 additions & 0 deletions
Large diffs are not rendered by default.

linux/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ endif()
4141
# of modifying this function.
4242
function(APPLY_STANDARD_SETTINGS TARGET)
4343
target_compile_features(${TARGET} PUBLIC cxx_std_14)
44-
target_compile_options(${TARGET} PRIVATE -Wall -Werror)
44+
target_compile_options(${TARGET} PRIVATE -Wall -Werror -Wno-error=deprecated-declarations)
4545
target_compile_options(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O3>")
4646
target_compile_definitions(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:NDEBUG>")
4747
endfunction()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/home/torrefacto/.pub-cache/hosted/pub.dev/file_picker-10.3.10/
1+
/Users/torrefacto/.pub-cache/hosted/pub.dev/file_picker-10.3.10/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/home/torrefacto/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
1+
/Users/torrefacto/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/home/torrefacto/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/
1+
/Users/torrefacto/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/

linux/flutter/generated_plugin_registrant.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <open_file_linux/open_file_linux_plugin.h>
1010
#include <screen_retriever_linux/screen_retriever_linux_plugin.h>
1111
#include <tray_manager/tray_manager_plugin.h>
12+
#include <url_launcher_linux/url_launcher_plugin.h>
1213
#include <window_manager/window_manager_plugin.h>
1314

1415
void fl_register_plugins(FlPluginRegistry* registry) {
@@ -21,6 +22,9 @@ void fl_register_plugins(FlPluginRegistry* registry) {
2122
g_autoptr(FlPluginRegistrar) tray_manager_registrar =
2223
fl_plugin_registry_get_registrar_for_plugin(registry, "TrayManagerPlugin");
2324
tray_manager_plugin_register_with_registrar(tray_manager_registrar);
25+
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
26+
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
27+
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
2428
g_autoptr(FlPluginRegistrar) window_manager_registrar =
2529
fl_plugin_registry_get_registrar_for_plugin(registry, "WindowManagerPlugin");
2630
window_manager_plugin_register_with_registrar(window_manager_registrar);

linux/flutter/generated_plugins.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
66
open_file_linux
77
screen_retriever_linux
88
tray_manager
9+
url_launcher_linux
910
window_manager
1011
)
1112

macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import screen_retriever_macos
1111
import shared_preferences_foundation
1212
import sqflite_darwin
1313
import tray_manager
14+
import url_launcher_macos
1415
import window_manager
1516

1617
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
@@ -20,5 +21,6 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
2021
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
2122
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
2223
TrayManagerPlugin.register(with: registry.registrar(forPlugin: "TrayManagerPlugin"))
24+
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
2325
WindowManagerPlugin.register(with: registry.registrar(forPlugin: "WindowManagerPlugin"))
2426
}

0 commit comments

Comments
 (0)