diff --git a/lib/common/rust/api/asar_api.dart b/lib/common/rust/api/asar_api.dart index 97b87e2..f4697d6 100644 --- a/lib/common/rust/api/asar_api.dart +++ b/lib/common/rust/api/asar_api.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.5.1. +// @generated by `flutter_rust_bridge`@ 2.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/common/rust/api/http_api.dart b/lib/common/rust/api/http_api.dart index 6616f04..5e3f748 100644 --- a/lib/common/rust/api/http_api.dart +++ b/lib/common/rust/api/http_api.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.5.1. +// @generated by `flutter_rust_bridge`@ 2.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/common/rust/api/rs_process.dart b/lib/common/rust/api/rs_process.dart index 4f6370d..f153135 100644 --- a/lib/common/rust/api/rs_process.dart +++ b/lib/common/rust/api/rs_process.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.5.1. +// @generated by `flutter_rust_bridge`@ 2.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/common/rust/api/win32_api.dart b/lib/common/rust/api/win32_api.dart index 265f206..c3faa95 100644 --- a/lib/common/rust/api/win32_api.dart +++ b/lib/common/rust/api/win32_api.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.5.1. +// @generated by `flutter_rust_bridge`@ 2.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/common/rust/frb_generated.dart b/lib/common/rust/frb_generated.dart index 34c545e..f20f230 100644 --- a/lib/common/rust/frb_generated.dart +++ b/lib/common/rust/frb_generated.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.5.1. +// @generated by `flutter_rust_bridge`@ 2.6.0. // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field @@ -67,7 +67,7 @@ class RustLib extends BaseEntrypoint { kDefaultExternalLibraryLoaderConfig; @override - String get codegenVersion => '2.5.1'; + String get codegenVersion => '2.6.0'; @override int get rustContentHash => 1832496273; @@ -81,12 +81,6 @@ class RustLib extends BaseEntrypoint { } abstract class RustLibApi extends BaseApi { - Future crateApiAsarApiGetRsiLauncherAsarData( - {required String asarPath}); - - Future crateApiAsarApiRsiLauncherAsarDataWriteMainJs( - {required RsiLauncherAsarData that, required List content}); - Future> crateApiHttpApiDnsLookupIps({required String host}); Future> crateApiHttpApiDnsLookupTxt({required String host}); @@ -99,9 +93,21 @@ abstract class RustLibApi extends BaseApi { String? withIpAddress, bool? withCustomDns}); + Future crateApiAsarApiGetRsiLauncherAsarData( + {required String asarPath}); + + Future crateApiAsarApiRsiLauncherAsarDataWriteMainJs( + {required RsiLauncherAsarData that, required List content}); + + Future crateApiWin32ApiSendNotify( + {String? summary, String? body, String? appName, String? appId}); + Future crateApiHttpApiSetDefaultHeader( {required Map headers}); + Future crateApiWin32ApiSetForegroundWindow( + {required String windowName}); + Stream crateApiRsProcessStart( {required String executable, required List arguments, @@ -109,12 +115,6 @@ abstract class RustLibApi extends BaseApi { Future crateApiRsProcessWrite( {required int rsPid, required String data}); - - Future crateApiWin32ApiSendNotify( - {String? summary, String? body, String? appName, String? appId}); - - Future crateApiWin32ApiSetForegroundWindow( - {required String windowName}); } class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @@ -125,58 +125,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { required super.portManager, }); - @override - Future crateApiAsarApiGetRsiLauncherAsarData( - {required String asarPath}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = cst_encode_String(asarPath); - return wire.wire__crate__api__asar_api__get_rsi_launcher_asar_data( - port_, arg0); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_rsi_launcher_asar_data, - decodeErrorData: dco_decode_AnyhowException, - ), - constMeta: kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta, - argValues: [asarPath], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta => - const TaskConstMeta( - debugName: "get_rsi_launcher_asar_data", - argNames: ["asarPath"], - ); - - @override - Future crateApiAsarApiRsiLauncherAsarDataWriteMainJs( - {required RsiLauncherAsarData that, required List content}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_rsi_launcher_asar_data(that); - var arg1 = cst_encode_list_prim_u_8_loose(content); - return wire - .wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js( - port_, arg0, arg1); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_AnyhowException, - ), - constMeta: kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta, - argValues: [that, content], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta => - const TaskConstMeta( - debugName: "rsi_launcher_asar_data_write_main_js", - argNames: ["that", "content"], - ); - @override Future> crateApiHttpApiDnsLookupIps({required String host}) { return handler.executeNormal(NormalTask( @@ -271,6 +219,85 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ], ); + @override + Future crateApiAsarApiGetRsiLauncherAsarData( + {required String asarPath}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_String(asarPath); + return wire.wire__crate__api__asar_api__get_rsi_launcher_asar_data( + port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_rsi_launcher_asar_data, + decodeErrorData: dco_decode_AnyhowException, + ), + constMeta: kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta, + argValues: [asarPath], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta => + const TaskConstMeta( + debugName: "get_rsi_launcher_asar_data", + argNames: ["asarPath"], + ); + + @override + Future crateApiAsarApiRsiLauncherAsarDataWriteMainJs( + {required RsiLauncherAsarData that, required List content}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_rsi_launcher_asar_data(that); + var arg1 = cst_encode_list_prim_u_8_loose(content); + return wire + .wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_unit, + decodeErrorData: dco_decode_AnyhowException, + ), + constMeta: kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta, + argValues: [that, content], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta => + const TaskConstMeta( + debugName: "rsi_launcher_asar_data_write_main_js", + argNames: ["that", "content"], + ); + + @override + Future crateApiWin32ApiSendNotify( + {String? summary, String? body, String? appName, String? appId}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_opt_String(summary); + var arg1 = cst_encode_opt_String(body); + var arg2 = cst_encode_opt_String(appName); + var arg3 = cst_encode_opt_String(appId); + return wire.wire__crate__api__win32_api__send_notify( + port_, arg0, arg1, arg2, arg3); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_unit, + decodeErrorData: dco_decode_AnyhowException, + ), + constMeta: kCrateApiWin32ApiSendNotifyConstMeta, + argValues: [summary, body, appName, appId], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiWin32ApiSendNotifyConstMeta => const TaskConstMeta( + debugName: "send_notify", + argNames: ["summary", "body", "appName", "appId"], + ); + @override Future crateApiHttpApiSetDefaultHeader( {required Map headers}) { @@ -295,6 +322,31 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: ["headers"], ); + @override + Future crateApiWin32ApiSetForegroundWindow( + {required String windowName}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_String(windowName); + return wire.wire__crate__api__win32_api__set_foreground_window( + port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_bool, + decodeErrorData: dco_decode_AnyhowException, + ), + constMeta: kCrateApiWin32ApiSetForegroundWindowConstMeta, + argValues: [windowName], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiWin32ApiSetForegroundWindowConstMeta => + const TaskConstMeta( + debugName: "set_foreground_window", + argNames: ["windowName"], + ); + @override Stream crateApiRsProcessStart( {required String executable, @@ -350,58 +402,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: ["rsPid", "data"], ); - @override - Future crateApiWin32ApiSendNotify( - {String? summary, String? body, String? appName, String? appId}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = cst_encode_opt_String(summary); - var arg1 = cst_encode_opt_String(body); - var arg2 = cst_encode_opt_String(appName); - var arg3 = cst_encode_opt_String(appId); - return wire.wire__crate__api__win32_api__send_notify( - port_, arg0, arg1, arg2, arg3); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_AnyhowException, - ), - constMeta: kCrateApiWin32ApiSendNotifyConstMeta, - argValues: [summary, body, appName, appId], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiWin32ApiSendNotifyConstMeta => const TaskConstMeta( - debugName: "send_notify", - argNames: ["summary", "body", "appName", "appId"], - ); - - @override - Future crateApiWin32ApiSetForegroundWindow( - {required String windowName}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = cst_encode_String(windowName); - return wire.wire__crate__api__win32_api__set_foreground_window( - port_, arg0); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_bool, - decodeErrorData: dco_decode_AnyhowException, - ), - constMeta: kCrateApiWin32ApiSetForegroundWindowConstMeta, - argValues: [windowName], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiWin32ApiSetForegroundWindowConstMeta => - const TaskConstMeta( - debugName: "set_foreground_window", - argNames: ["windowName"], - ); - @protected AnyhowException dco_decode_AnyhowException(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs diff --git a/lib/common/rust/frb_generated.io.dart b/lib/common/rust/frb_generated.io.dart index c39081b..7f0a667 100644 --- a/lib/common/rust/frb_generated.io.dart +++ b/lib/common/rust/frb_generated.io.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.5.1. +// @generated by `flutter_rust_bridge`@ 2.6.0. // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field @@ -562,51 +562,6 @@ class RustLibWire implements BaseWire { late final _store_dart_post_cobject = _store_dart_post_cobjectPtr .asFunction(); - void wire__crate__api__asar_api__get_rsi_launcher_asar_data( - int port_, - ffi.Pointer asar_path, - ) { - return _wire__crate__api__asar_api__get_rsi_launcher_asar_data( - port_, - asar_path, - ); - } - - late final _wire__crate__api__asar_api__get_rsi_launcher_asar_dataPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_starcitizen_doctor_wire__crate__api__asar_api__get_rsi_launcher_asar_data'); - late final _wire__crate__api__asar_api__get_rsi_launcher_asar_data = - _wire__crate__api__asar_api__get_rsi_launcher_asar_dataPtr.asFunction< - void Function(int, ffi.Pointer)>(); - - void wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js( - int port_, - ffi.Pointer that, - ffi.Pointer content, - ) { - return _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js( - port_, - that, - content, - ); - } - - late final _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_jsPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_starcitizen_doctor_wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js'); - late final _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js = - _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_jsPtr - .asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - void wire__crate__api__http_api__dns_lookup_ips( int port_, ffi.Pointer host, @@ -687,6 +642,85 @@ class RustLibWire implements BaseWire { ffi.Pointer, ffi.Pointer)>(); + void wire__crate__api__asar_api__get_rsi_launcher_asar_data( + int port_, + ffi.Pointer asar_path, + ) { + return _wire__crate__api__asar_api__get_rsi_launcher_asar_data( + port_, + asar_path, + ); + } + + late final _wire__crate__api__asar_api__get_rsi_launcher_asar_dataPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_starcitizen_doctor_wire__crate__api__asar_api__get_rsi_launcher_asar_data'); + late final _wire__crate__api__asar_api__get_rsi_launcher_asar_data = + _wire__crate__api__asar_api__get_rsi_launcher_asar_dataPtr.asFunction< + void Function(int, ffi.Pointer)>(); + + void wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js( + int port_, + ffi.Pointer that, + ffi.Pointer content, + ) { + return _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js( + port_, + that, + content, + ); + } + + late final _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_jsPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_starcitizen_doctor_wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js'); + late final _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js = + _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_jsPtr + .asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire__crate__api__win32_api__send_notify( + int port_, + ffi.Pointer summary, + ffi.Pointer body, + ffi.Pointer app_name, + ffi.Pointer app_id, + ) { + return _wire__crate__api__win32_api__send_notify( + port_, + summary, + body, + app_name, + app_id, + ); + } + + late final _wire__crate__api__win32_api__send_notifyPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_starcitizen_doctor_wire__crate__api__win32_api__send_notify'); + late final _wire__crate__api__win32_api__send_notify = + _wire__crate__api__win32_api__send_notifyPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + void wire__crate__api__http_api__set_default_header( int port_, ffi.Pointer headers, @@ -707,6 +741,25 @@ class RustLibWire implements BaseWire { void Function( int, ffi.Pointer)>(); + void wire__crate__api__win32_api__set_foreground_window( + int port_, + ffi.Pointer window_name, + ) { + return _wire__crate__api__win32_api__set_foreground_window( + port_, + window_name, + ); + } + + late final _wire__crate__api__win32_api__set_foreground_windowPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_starcitizen_doctor_wire__crate__api__win32_api__set_foreground_window'); + late final _wire__crate__api__win32_api__set_foreground_window = + _wire__crate__api__win32_api__set_foreground_windowPtr.asFunction< + void Function(int, ffi.Pointer)>(); + void wire__crate__api__rs_process__start( int port_, ffi.Pointer executable, @@ -763,59 +816,6 @@ class RustLibWire implements BaseWire { void Function( int, int, ffi.Pointer)>(); - void wire__crate__api__win32_api__send_notify( - int port_, - ffi.Pointer summary, - ffi.Pointer body, - ffi.Pointer app_name, - ffi.Pointer app_id, - ) { - return _wire__crate__api__win32_api__send_notify( - port_, - summary, - body, - app_name, - app_id, - ); - } - - late final _wire__crate__api__win32_api__send_notifyPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_starcitizen_doctor_wire__crate__api__win32_api__send_notify'); - late final _wire__crate__api__win32_api__send_notify = - _wire__crate__api__win32_api__send_notifyPtr.asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - void wire__crate__api__win32_api__set_foreground_window( - int port_, - ffi.Pointer window_name, - ) { - return _wire__crate__api__win32_api__set_foreground_window( - port_, - window_name, - ); - } - - late final _wire__crate__api__win32_api__set_foreground_windowPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_starcitizen_doctor_wire__crate__api__win32_api__set_foreground_window'); - late final _wire__crate__api__win32_api__set_foreground_window = - _wire__crate__api__win32_api__set_foreground_windowPtr.asFunction< - void Function(int, ffi.Pointer)>(); - ffi.Pointer cst_new_box_autoadd_bool( bool value, ) { @@ -947,6 +947,19 @@ final class wire_cst_list_prim_u_8_strict extends ffi.Struct { external int len; } +final class wire_cst_record_string_string extends ffi.Struct { + external ffi.Pointer field0; + + external ffi.Pointer field1; +} + +final class wire_cst_list_record_string_string extends ffi.Struct { + external ffi.Pointer ptr; + + @ffi.Int32() + external int len; +} + final class wire_cst_rsi_launcher_asar_data extends ffi.Struct { external ffi.Pointer asar_path; @@ -962,19 +975,6 @@ final class wire_cst_list_prim_u_8_loose extends ffi.Struct { external int len; } -final class wire_cst_record_string_string extends ffi.Struct { - external ffi.Pointer field0; - - external ffi.Pointer field1; -} - -final class wire_cst_list_record_string_string extends ffi.Struct { - external ffi.Pointer ptr; - - @ffi.Int32() - external int len; -} - final class wire_cst_list_String extends ffi.Struct { external ffi.Pointer> ptr; diff --git a/lib/common/rust/http_package.dart b/lib/common/rust/http_package.dart index 27f0e04..60a0b89 100644 --- a/lib/common/rust/http_package.dart +++ b/lib/common/rust/http_package.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.5.1. +// @generated by `flutter_rust_bridge`@ 2.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/ui/home/input_method/input_method_dialog_ui_model.g.dart b/lib/ui/home/input_method/input_method_dialog_ui_model.g.dart index 931b70e..642a2e0 100644 --- a/lib/ui/home/input_method/input_method_dialog_ui_model.g.dart +++ b/lib/ui/home/input_method/input_method_dialog_ui_model.g.dart @@ -7,7 +7,7 @@ part of 'input_method_dialog_ui_model.dart'; // ************************************************************************** String _$inputMethodDialogUIModelHash() => - r'1c7193891c609715b2c7ee1b34f67aa26b18d303'; + r'8c703de14c98fb6b2f26dbae04c2c9c06f50eb8c'; /// See also [InputMethodDialogUIModel]. @ProviderFor(InputMethodDialogUIModel) diff --git a/lib/ui/home/input_method/server.g.dart b/lib/ui/home/input_method/server.g.dart index 9fcf5f2..eb65455 100644 --- a/lib/ui/home/input_method/server.g.dart +++ b/lib/ui/home/input_method/server.g.dart @@ -6,7 +6,7 @@ part of 'server.dart'; // RiverpodGenerator // ************************************************************************** -String _$inputMethodServerHash() => r'227e0e32cd7b8895f3b108505cd524680afc4126'; +String _$inputMethodServerHash() => r'58ff318c051f16c76f620258520aadedbdd5057c'; /// See also [InputMethodServer]. @ProviderFor(InputMethodServer) diff --git a/lib/ui/home/localization/advanced_localization_ui_model.g.dart b/lib/ui/home/localization/advanced_localization_ui_model.g.dart index c584b74..f153af1 100644 --- a/lib/ui/home/localization/advanced_localization_ui_model.g.dart +++ b/lib/ui/home/localization/advanced_localization_ui_model.g.dart @@ -7,7 +7,7 @@ part of 'advanced_localization_ui_model.dart'; // ************************************************************************** String _$advancedLocalizationUIModelHash() => - r'6b65988e71733c01e9352765cf600c4781bdccb4'; + r'52d4f40f20e9f4d2f34fae7d0378acb31cf681ac'; /// See also [AdvancedLocalizationUIModel]. @ProviderFor(AdvancedLocalizationUIModel) diff --git a/lib/ui/home/localization/localization_ui_model.g.dart b/lib/ui/home/localization/localization_ui_model.g.dart index 6c012cb..6dc0eb9 100644 --- a/lib/ui/home/localization/localization_ui_model.g.dart +++ b/lib/ui/home/localization/localization_ui_model.g.dart @@ -7,7 +7,7 @@ part of 'localization_ui_model.dart'; // ************************************************************************** String _$localizationUIModelHash() => - r'206512f457acdb0aaa2cd638fcdb31b6a88848a6'; + r'4d77028b8fb92490a1ff3292c667e9a2923d32cc'; /// See also [LocalizationUIModel]. @ProviderFor(LocalizationUIModel) diff --git a/pubspec.yaml b/pubspec.yaml index 6fb7207..b65a45b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -42,7 +42,7 @@ dependencies: flutter_tilt: ^3.0.0 card_swiper: ^3.0.1 ffi: ^2.1.0 - flutter_rust_bridge: ^2.5.1 + flutter_rust_bridge: 2.6.0 freezed_annotation: ^2.4.1 meta: ^1.9.1 hexcolor: ^3.0.1 diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 6aedc1e..160d59d 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -15,7 +15,7 @@ flutter_rust_bridge = "=2.6.0" tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "process"] } futures = { version = "0.3", default-features = false, features = ["executor"] } url = "2.5" -once_cell = "1.19" +once_cell = "1.20" reqwest = { version = "0.12", features = ["rustls-tls-webpki-roots", "cookies", "gzip", "json", "stream"] } hickory-resolver = { version = "0.24" } anyhow = "1.0" diff --git a/rust/src/frb_generated.rs b/rust/src/frb_generated.rs index 3ef465f..2be8edc 100644 --- a/rust/src/frb_generated.rs +++ b/rust/src/frb_generated.rs @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.5.1. +// @generated by `flutter_rust_bridge`@ 2.6.0. #![allow( non_camel_case_types, @@ -36,7 +36,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_opaque = RustOpaqueNom, default_rust_auto_opaque = RustAutoOpaqueNom, ); -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.5.1"; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.6.0"; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1832496273; // Section: executor @@ -45,62 +45,6 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs -fn wire__crate__api__asar_api__get_rsi_launcher_asar_data_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - asar_path: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "get_rsi_launcher_asar_data", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let api_asar_path = asar_path.cst_decode(); - move |context| async move { - transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( - (move || async move { - let output_ok = - crate::api::asar_api::get_rsi_launcher_asar_data(&api_asar_path) - .await?; - Ok(output_ok) - })() - .await, - ) - } - }, - ) -} -fn wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - content: impl CstDecode>, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "rsi_launcher_asar_data_write_main_js", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let api_that = that.cst_decode(); - let api_content = content.cst_decode(); - move |context| async move { - transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( - (move || async move { - let output_ok = crate::api::asar_api::RsiLauncherAsarData::write_main_js( - &api_that, - api_content, - ) - .await?; - Ok(output_ok) - })() - .await, - ) - } - }, - ) -} fn wire__crate__api__http_api__dns_lookup_ips_impl( port_: flutter_rust_bridge::for_generated::MessagePort, host: impl CstDecode, @@ -191,6 +135,96 @@ fn wire__crate__api__http_api__fetch_impl( }, ) } +fn wire__crate__api__asar_api__get_rsi_launcher_asar_data_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + asar_path: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "get_rsi_launcher_asar_data", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_asar_path = asar_path.cst_decode(); + move |context| async move { + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || async move { + let output_ok = + crate::api::asar_api::get_rsi_launcher_asar_data(&api_asar_path) + .await?; + Ok(output_ok) + })() + .await, + ) + } + }, + ) +} +fn wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + content: impl CstDecode>, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "rsi_launcher_asar_data_write_main_js", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_content = content.cst_decode(); + move |context| async move { + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || async move { + let output_ok = crate::api::asar_api::RsiLauncherAsarData::write_main_js( + &api_that, + api_content, + ) + .await?; + Ok(output_ok) + })() + .await, + ) + } + }, + ) +} +fn wire__crate__api__win32_api__send_notify_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + summary: impl CstDecode>, + body: impl CstDecode>, + app_name: impl CstDecode>, + app_id: impl CstDecode>, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "send_notify", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_summary = summary.cst_decode(); + let api_body = body.cst_decode(); + let api_app_name = app_name.cst_decode(); + let api_app_id = app_id.cst_decode(); + move |context| { + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::win32_api::send_notify( + api_summary, + api_body, + api_app_name, + api_app_id, + )?; + Ok(output_ok) + })(), + ) + } + }, + ) +} fn wire__crate__api__http_api__set_default_header_impl( port_: flutter_rust_bridge::for_generated::MessagePort, headers: impl CstDecode>, @@ -214,6 +248,30 @@ fn wire__crate__api__http_api__set_default_header_impl( }, ) } +fn wire__crate__api__win32_api__set_foreground_window_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + window_name: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "set_foreground_window", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_window_name = window_name.cst_decode(); + move |context| { + transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = + crate::api::win32_api::set_foreground_window(&api_window_name)?; + Ok(output_ok) + })(), + ) + } + }, + ) +} fn wire__crate__api__rs_process__start_impl( port_: flutter_rust_bridge::for_generated::MessagePort, executable: impl CstDecode, @@ -285,64 +343,6 @@ fn wire__crate__api__rs_process__write_impl( }, ) } -fn wire__crate__api__win32_api__send_notify_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - summary: impl CstDecode>, - body: impl CstDecode>, - app_name: impl CstDecode>, - app_id: impl CstDecode>, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "send_notify", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let api_summary = summary.cst_decode(); - let api_body = body.cst_decode(); - let api_app_name = app_name.cst_decode(); - let api_app_id = app_id.cst_decode(); - move |context| { - transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( - (move || { - let output_ok = crate::api::win32_api::send_notify( - api_summary, - api_body, - api_app_name, - api_app_id, - )?; - Ok(output_ok) - })(), - ) - } - }, - ) -} -fn wire__crate__api__win32_api__set_foreground_window_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - window_name: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "set_foreground_window", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let api_window_name = window_name.cst_decode(); - move |context| { - transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>( - (move || { - let output_ok = - crate::api::win32_api::set_foreground_window(&api_window_name)?; - Ok(output_ok) - })(), - ) - } - }, - ) -} // Section: dart2rust @@ -1144,7 +1144,7 @@ impl SseEncode for () { #[cfg(not(target_family = "wasm"))] mod io { // This file is automatically generated, so please do not edit it. - // @generated by `flutter_rust_bridge`@ 2.5.1. + // @generated by `flutter_rust_bridge`@ 2.6.0. // Section: imports @@ -1361,23 +1361,6 @@ mod io { } } - #[no_mangle] - pub extern "C" fn frbgen_starcitizen_doctor_wire__crate__api__asar_api__get_rsi_launcher_asar_data( - port_: i64, - asar_path: *mut wire_cst_list_prim_u_8_strict, - ) { - wire__crate__api__asar_api__get_rsi_launcher_asar_data_impl(port_, asar_path) - } - - #[no_mangle] - pub extern "C" fn frbgen_starcitizen_doctor_wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js( - port_: i64, - that: *mut wire_cst_rsi_launcher_asar_data, - content: *mut wire_cst_list_prim_u_8_loose, - ) { - wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js_impl(port_, that, content) - } - #[no_mangle] pub extern "C" fn frbgen_starcitizen_doctor_wire__crate__api__http_api__dns_lookup_ips( port_: i64, @@ -1415,6 +1398,34 @@ mod io { ) } + #[no_mangle] + pub extern "C" fn frbgen_starcitizen_doctor_wire__crate__api__asar_api__get_rsi_launcher_asar_data( + port_: i64, + asar_path: *mut wire_cst_list_prim_u_8_strict, + ) { + wire__crate__api__asar_api__get_rsi_launcher_asar_data_impl(port_, asar_path) + } + + #[no_mangle] + pub extern "C" fn frbgen_starcitizen_doctor_wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js( + port_: i64, + that: *mut wire_cst_rsi_launcher_asar_data, + content: *mut wire_cst_list_prim_u_8_loose, + ) { + wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js_impl(port_, that, content) + } + + #[no_mangle] + pub extern "C" fn frbgen_starcitizen_doctor_wire__crate__api__win32_api__send_notify( + port_: i64, + summary: *mut wire_cst_list_prim_u_8_strict, + body: *mut wire_cst_list_prim_u_8_strict, + app_name: *mut wire_cst_list_prim_u_8_strict, + app_id: *mut wire_cst_list_prim_u_8_strict, + ) { + wire__crate__api__win32_api__send_notify_impl(port_, summary, body, app_name, app_id) + } + #[no_mangle] pub extern "C" fn frbgen_starcitizen_doctor_wire__crate__api__http_api__set_default_header( port_: i64, @@ -1423,6 +1434,14 @@ mod io { wire__crate__api__http_api__set_default_header_impl(port_, headers) } + #[no_mangle] + pub extern "C" fn frbgen_starcitizen_doctor_wire__crate__api__win32_api__set_foreground_window( + port_: i64, + window_name: *mut wire_cst_list_prim_u_8_strict, + ) { + wire__crate__api__win32_api__set_foreground_window_impl(port_, window_name) + } + #[no_mangle] pub extern "C" fn frbgen_starcitizen_doctor_wire__crate__api__rs_process__start( port_: i64, @@ -1449,25 +1468,6 @@ mod io { wire__crate__api__rs_process__write_impl(port_, rs_pid, data) } - #[no_mangle] - pub extern "C" fn frbgen_starcitizen_doctor_wire__crate__api__win32_api__send_notify( - port_: i64, - summary: *mut wire_cst_list_prim_u_8_strict, - body: *mut wire_cst_list_prim_u_8_strict, - app_name: *mut wire_cst_list_prim_u_8_strict, - app_id: *mut wire_cst_list_prim_u_8_strict, - ) { - wire__crate__api__win32_api__send_notify_impl(port_, summary, body, app_name, app_id) - } - - #[no_mangle] - pub extern "C" fn frbgen_starcitizen_doctor_wire__crate__api__win32_api__set_foreground_window( - port_: i64, - window_name: *mut wire_cst_list_prim_u_8_strict, - ) { - wire__crate__api__win32_api__set_foreground_window_impl(port_, window_name) - } - #[no_mangle] pub extern "C" fn frbgen_starcitizen_doctor_cst_new_box_autoadd_bool(value: bool) -> *mut bool { flutter_rust_bridge::for_generated::new_leak_box_ptr(value)