* refactor: replace super_clipboard with pasteboard, drop cargokit/Rust
super_clipboard pulled in super_native_extensions (a Rust native layer
built via cargokit), whose precompiled-binary download from GitHub
release assets has been intermittently failing the build ("Connection
closed while receiving data"). It was used for exactly one feature -
reading a clipboard image into the composer - in a single file; the
other 12 imports were dead.
- Swap super_clipboard -> pasteboard (platform-channel, no Rust).
- Rewrite readClipboardImageAsXFileInternal() on Pasteboard.image
(PNG bytes), collapsing three helpers into one.
- Remove 12 unused super_clipboard imports.
- Regenerated plugin registrants / lockfiles drop super_native_extensions.
Removes the Rust toolchain requirement and the flaky download entirely.
Text copy/paste already used Flutter's built-in Clipboard and is
unaffected.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* ci: keep TestFlight package release-only
---------
Co-authored-by: Haitao Pan <manbuzhe2009@qq.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
24 lines
957 B
C++
24 lines
957 B
C++
//
|
|
// Generated file. Do not edit.
|
|
//
|
|
|
|
// clang-format off
|
|
|
|
#include "generated_plugin_registrant.h"
|
|
|
|
#include <file_selector_linux/file_selector_plugin.h>
|
|
#include <flutter_webrtc/flutter_web_r_t_c_plugin.h>
|
|
#include <pasteboard/pasteboard_plugin.h>
|
|
|
|
void fl_register_plugins(FlPluginRegistry* registry) {
|
|
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
|
|
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
|
|
g_autoptr(FlPluginRegistrar) flutter_webrtc_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterWebRTCPlugin");
|
|
flutter_web_r_t_c_plugin_register_with_registrar(flutter_webrtc_registrar);
|
|
g_autoptr(FlPluginRegistrar) pasteboard_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "PasteboardPlugin");
|
|
pasteboard_plugin_register_with_registrar(pasteboard_registrar);
|
|
}
|