diff --git a/lib/pages/device.dart b/lib/pages/device.dart index bfb57a1..61cdcfa 100644 --- a/lib/pages/device.dart +++ b/lib/pages/device.dart @@ -4,7 +4,7 @@ import 'dart:io'; import 'package:device_auto_rotate_checker/device_auto_rotate_checker.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; -import 'package:share_plus/share_plus.dart'; +import 'package:flutter/services.dart'; import 'package:swift_control/bluetooth/devices/zwift/protocol/zp.pbenum.dart'; import 'package:swift_control/bluetooth/devices/zwift/zwift_clickv2.dart'; import 'package:swift_control/main.dart'; @@ -404,7 +404,7 @@ class _DevicePageState extends State with WidgetsBindingObserver { (actionHandler.supportedApp as CustomApp).profileName; final jsonData = settings.exportCustomAppProfile(currentProfile); if (jsonData != null) { - SharePlus.instance.share(ShareParams(text: jsonData)); + Clipboard.setData(ClipboardData(text: jsonData)); if (mounted) { _snackBarMessengerKey.currentState!.showSnackBar( SnackBar( diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index d0a3eab..e36bc1e 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -14,7 +14,6 @@ import keypress_simulator_macos import package_info_plus import path_provider_foundation import screen_retriever_macos -import share_plus import shared_preferences_foundation import universal_ble import url_launcher_macos @@ -31,7 +30,6 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) ScreenRetrieverMacosPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverMacosPlugin")) - SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) UniversalBlePlugin.register(with: registry.registrar(forPlugin: "UniversalBlePlugin")) UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) diff --git a/pubspec.lock b/pubspec.lock index 77daffd..83bfb90 100755 --- a/pubspec.lock +++ b/pubspec.lock @@ -869,22 +869,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.2.0" - share_plus: - dependency: "direct main" - description: - name: share_plus - sha256: "14c8860d4de93d3a7e53af51bff479598c4e999605290756bbbe45cf65b37840" - url: "https://pub.dev" - source: hosted - version: "12.0.1" - share_plus_platform_interface: - dependency: transitive - description: - name: share_plus_platform_interface - sha256: "88023e53a13429bd65d8e85e11a9b484f49d4c190abbd96c7932b74d6927cc9a" - url: "https://pub.dev" - source: hosted - version: "6.1.0" shared_preferences: dependency: "direct main" description: @@ -962,14 +946,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.10.1" - sprintf: - dependency: transitive - description: - name: sprintf - sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23" - url: "https://pub.dev" - source: hosted - version: "7.0.0" stack_trace: dependency: transitive description: @@ -1115,14 +1091,6 @@ packages: url: "https://pub.dev" source: hosted version: "3.1.4" - uuid: - dependency: transitive - description: - name: uuid - sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff - url: "https://pub.dev" - source: hosted - version: "4.5.1" vector_math: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index fa26d31..2e3c4b5 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -20,7 +20,6 @@ dependencies: gamepads: ^0.1.8+2 path_provider: ^2.1.5 - share_plus: ^12.0.1 intl: any version: ^3.0.0 bluetooth_low_energy: ^6.1.0 diff --git a/windows/flutter/generated_plugin_registrant.cc b/windows/flutter/generated_plugin_registrant.cc index bd418d4..8d7dd6c 100644 --- a/windows/flutter/generated_plugin_registrant.cc +++ b/windows/flutter/generated_plugin_registrant.cc @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -30,8 +29,6 @@ void RegisterPlugins(flutter::PluginRegistry* registry) { registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin")); ScreenRetrieverWindowsPluginCApiRegisterWithRegistrar( registry->GetRegistrarForPlugin("ScreenRetrieverWindowsPluginCApi")); - SharePlusWindowsPluginCApiRegisterWithRegistrar( - registry->GetRegistrarForPlugin("SharePlusWindowsPluginCApi")); UniversalBlePluginCApiRegisterWithRegistrar( registry->GetRegistrarForPlugin("UniversalBlePluginCApi")); UrlLauncherWindowsRegisterWithRegistrar( diff --git a/windows/flutter/generated_plugins.cmake b/windows/flutter/generated_plugins.cmake index cf326f2..8e22eef 100644 --- a/windows/flutter/generated_plugins.cmake +++ b/windows/flutter/generated_plugins.cmake @@ -9,7 +9,6 @@ list(APPEND FLUTTER_PLUGIN_LIST keypress_simulator_windows permission_handler_windows screen_retriever_windows - share_plus universal_ble url_launcher_windows window_manager