From f7a5dba9d080d85c8212ab39a660240c786ea3ec Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Mon, 12 Jul 2021 19:42:42 +0800 Subject: [PATCH] Migrate deprecated dependency: connectivity --- lib/connectivity_util.dart | 2 +- pubspec.lock | 45 ++++++++++++++++++++++++++++---------- pubspec.yaml | 2 +- 3 files changed, 35 insertions(+), 14 deletions(-) diff --git a/lib/connectivity_util.dart b/lib/connectivity_util.dart index 6514f8b1..1ef6b26d 100644 --- a/lib/connectivity_util.dart +++ b/lib/connectivity_util.dart @@ -1,4 +1,4 @@ -import 'package:connectivity/connectivity.dart'; +import 'package:connectivity_plus/connectivity_plus.dart'; Future waitUntilWifi() async { while (true) { diff --git a/pubspec.lock b/pubspec.lock index d0e61850..38cba1ea 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -99,34 +99,48 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.15.0" - connectivity: + connectivity_plus: dependency: "direct main" description: - name: connectivity + name: connectivity_plus url: "https://pub.dartlang.org" source: hosted - version: "3.0.4" - connectivity_for_web: + version: "1.0.5" + connectivity_plus_linux: dependency: transitive description: - name: connectivity_for_web + name: connectivity_plus_linux url: "https://pub.dartlang.org" source: hosted - version: "0.4.0" - connectivity_macos: + version: "1.0.3" + connectivity_plus_macos: dependency: transitive description: - name: connectivity_macos + name: connectivity_plus_macos url: "https://pub.dartlang.org" source: hosted - version: "0.2.0" - connectivity_platform_interface: + version: "1.0.2" + connectivity_plus_platform_interface: dependency: transitive description: - name: connectivity_platform_interface + name: connectivity_plus_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "1.0.2" + connectivity_plus_web: + dependency: transitive + description: + name: connectivity_plus_web + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.2" + connectivity_plus_windows: + dependency: transitive + description: + name: connectivity_plus_windows + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.2" convert: dependency: transitive description: @@ -148,6 +162,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "3.0.1" + dbus: + dependency: transitive + description: + name: dbus + url: "https://pub.dartlang.org" + source: hosted + version: "0.5.2" draggable_scrollbar: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index f23a2a4c..ed0ac65c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -30,7 +30,7 @@ dependencies: android_intent_plus: ^1.0.2 bloc: ^7.0.0 cached_network_image: ^3.0.0 - connectivity: ^3.0.2 + connectivity_plus: ^1.0.5 draggable_scrollbar: git: url: https://gitlab.com/nkming2/flutter-draggable-scrollbar