From aee84858c8970496a19c1425b68e3bbe654ac009 Mon Sep 17 00:00:00 2001 From: Liuyf Date: Thu, 28 Nov 2024 19:37:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=EF=BC=9A=20ITMS-91056:=20Invalid=20priv?= =?UTF-8?q?acy=20manifest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index c4ff7690..59310234 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -220,7 +220,7 @@ dependencies: flutter_voice_processor: 1.1.1 #监听网络连接状态 - connectivity_plus: ^5.0.2 + connectivity_plus: 6.1.0 #flutter_advanced_calendar: ^1.4.1 timelines: ^0.1.0 #侧滑删除 From 3d3cbf80ad860fd26d40c561ae85f3e68fae7c4d Mon Sep 17 00:00:00 2001 From: Liuyf Date: Fri, 29 Nov 2024 12:34:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=EF=BC=9A=20ITMS-91056:=20Invalid=20priv?= =?UTF-8?q?acy=20manifest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main/lockMian/lockMain/lockMain_logic.dart | 5 +++-- pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/main/lockMian/lockMain/lockMain_logic.dart b/lib/main/lockMian/lockMain/lockMain_logic.dart index 6234c12c..f21acef9 100755 --- a/lib/main/lockMian/lockMain/lockMain_logic.dart +++ b/lib/main/lockMian/lockMain/lockMain_logic.dart @@ -134,11 +134,12 @@ class LockMainLogic extends BaseGetXController { /// 判断网络是否连接 Future isConnected() async { - final ConnectivityResult connectResult = + final List connectResults = await Connectivity().checkConnectivity(); - return connectResult != ConnectivityResult.none; + return !connectResults.contains(ConnectivityResult.none); } + /// 设置网络切换监听 // Future connectListener() async { // Connectivity().onConnectivityChanged.listen((ConnectivityResult result) { diff --git a/pubspec.yaml b/pubspec.yaml index 59310234..0c318e75 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -220,7 +220,7 @@ dependencies: flutter_voice_processor: 1.1.1 #监听网络连接状态 - connectivity_plus: 6.1.0 + connectivity_plus: 6.0.5 #flutter_advanced_calendar: ^1.4.1 timelines: ^0.1.0 #侧滑删除