chore: 移除NFC/蓝牙相关支持,更新设备在线统计,新增功能优化

1.  移除NFC和蓝牙相关依赖、权限及功能代码,精简传输链路
2.  重构设备在线统计逻辑,使用后端7天活跃字段替代本地计算
3.  更新应用名称、权限说明和协议文档
4.  新增消息转发、缓存管理、医疗免责提示功能
5.  优化运势模块和字体管理文案,修复构建日志问题
This commit is contained in:
Developer
2026-06-06 06:12:09 +08:00
parent e0329ab103
commit 214a0684d0
122 changed files with 5849 additions and 3710 deletions

View File

@@ -8,15 +8,14 @@
enum PairingMethod {
lan('lan', '局域网', '📶'),
ble('ble', '蓝牙', '🔵'),
nfc('nfc', 'NFC', '📡'),
qrCode('qr_code', '扫码', '📷'),
account('account', '账户', '👤'),
manual('manual', '手动IP', '✍️'),
usb('usb', 'USB有线', '🔌'),
hotspot('hotspot', 'WiFi热点', '📶'),
wifiDirect('wifi_direct', 'Wi-Fi直连', '📶'),
harmonyNearby('harmony_nearby', '鸿蒙Nearby', '📡');
harmonyNearby('harmony_nearby', '鸿蒙Nearby', '📡'),
nearbyP2p('nearby_p2p', '附近P2P', '📱');
const PairingMethod(this.id, this.label, this.emoji);
final String id;
@@ -39,8 +38,6 @@ enum PairingMethod {
}
bool get requiresInternet => this == PairingMethod.account;
bool get requiresBluetooth => this == PairingMethod.ble;
bool get requiresNfc => this == PairingMethod.nfc;
bool get requiresCamera => this == PairingMethod.qrCode;
bool get requiresUsb => this == PairingMethod.usb;
bool get worksOffline => !requiresInternet;