From 5d9620798f3e4d9df0e5c871f7e9fadeedc11a5b Mon Sep 17 00:00:00 2001
From: lxm <1274844347@qq.com>
Date: Mon, 12 Jan 2026 15:45:19 +0800
Subject: [PATCH] =?UTF-8?q?refactor(floating=5Fui):=20=E9=87=8D=E6=9E=84?=
=?UTF-8?q?=E6=82=AC=E6=B5=AE=E7=AA=97=E6=8F=92=E4=BB=B6=E5=B9=B6=E9=87=8D?=
=?UTF-8?q?=E5=91=BD=E5=90=8D=E4=B8=BAfloating=5Fui=5Fplugin?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
将原生插件native_plugin重构为floating_ui_plugin,实现悬浮窗服务独立管理
新增悬浮窗状态管理及内容更新功能,优化代码结构
移除主工程中冗余的悬浮窗相关代码,统一通过插件管理
---
android/app/src/main/AndroidManifest.xml | 6 -
.../com/saitong/voitrans/MainActivity.kt | 4 -
.../com/saitong/voitrans/MyApplication.kt | 6 -
.../services/floating_window_manager.dart | 18 +-
.../meeting_record_controller.dart | 2 +-
.../controllers/translation_controller.dart | 2 +-
.../android/src/main/AndroidManifest.xml | 3 +
.../native_plugin/FloatingWindowService.java | 405 ++++++++++++++++++
.../example/native_plugin/NativePlugin.java | 190 ++++++++
...gin.podspec => floating_ui_plugin.podspec} | 7 +-
.../native_plugin/lib/native_plugin.dart | 30 ++
local_plugins/native_plugin/pubspec.yaml | 2 +-
pubspec.yaml | 2 +-
13 files changed, 646 insertions(+), 31 deletions(-)
create mode 100644 local_plugins/native_plugin/android/src/main/java/com/example/native_plugin/FloatingWindowService.java
rename local_plugins/native_plugin/ios/{native_plugin.podspec => floating_ui_plugin.podspec} (83%)
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 7400593aa..4e3d6a8c6 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -136,12 +136,6 @@
android:value="78e7946dd602778df82c6ae143a88184"/>
-
-