From fbb9f40f01e5aae2a8afe57749208d5e29e83dca Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Tue, 27 Dec 2022 13:15:46 +0100 Subject: [PATCH] chore: Remove workaround of record package --- linux/flutter/generated_plugin_registrant.cc | 4 ++++ linux/flutter/generated_plugins.cmake | 1 + pubspec.lock | 19 ++++++++++++------- pubspec.yaml | 5 +---- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/linux/flutter/generated_plugin_registrant.cc b/linux/flutter/generated_plugin_registrant.cc index 1d845537..14d91e18 100644 --- a/linux/flutter/generated_plugin_registrant.cc +++ b/linux/flutter/generated_plugin_registrant.cc @@ -12,6 +12,7 @@ #include #include #include +#include #include void fl_register_plugins(FlPluginRegistry* registry) { @@ -33,6 +34,9 @@ void fl_register_plugins(FlPluginRegistry* registry) { g_autoptr(FlPluginRegistrar) handy_window_registrar = fl_plugin_registry_get_registrar_for_plugin(registry, "HandyWindowPlugin"); handy_window_plugin_register_with_registrar(handy_window_registrar); + g_autoptr(FlPluginRegistrar) record_linux_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "RecordLinuxPlugin"); + record_linux_plugin_register_with_registrar(record_linux_registrar); g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); diff --git a/linux/flutter/generated_plugins.cmake b/linux/flutter/generated_plugins.cmake index bd169608..820f9381 100644 --- a/linux/flutter/generated_plugins.cmake +++ b/linux/flutter/generated_plugins.cmake @@ -9,6 +9,7 @@ list(APPEND FLUTTER_PLUGIN_LIST file_selector_linux flutter_secure_storage_linux handy_window + record_linux url_launcher_linux ) diff --git a/pubspec.lock b/pubspec.lock index 7d10ae7a..096e4c18 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1335,12 +1335,17 @@ packages: record: dependency: "direct main" description: - path: record - ref: HEAD - resolved-ref: "95e3e8a08e54698a41ab49d50d1d3cb42cecb4e7" - url: "https://github.com/krillefear/record.git" - source: git - version: "4.4.3" + name: record + url: "https://pub.dartlang.org" + source: hosted + version: "4.4.4" + record_linux: + dependency: transitive + description: + name: record_linux + url: "https://pub.dartlang.org" + source: hosted + version: "0.4.1" record_macos: dependency: transitive description: @@ -1368,7 +1373,7 @@ packages: name: record_windows url: "https://pub.dartlang.org" source: hosted - version: "0.6.2" + version: "0.7.1" remove_emoji: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index b6b4a189..43f28073 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -72,10 +72,7 @@ dependencies: qr_code_scanner: ^1.0.0 qr_flutter: ^4.0.0 receive_sharing_intent: ^1.4.5 - record: # Because of https://github.com/llfbandit/record/issues/95 - git: - url: https://github.com/krillefear/record.git - path: record + record: ^4.4.4 scroll_to_index: ^3.0.1 share_plus: ^4.0.10+1 shared_preferences: ^2.0.13