From c0da37e2415892e8986bac2dcfbb54664e0fda41 Mon Sep 17 00:00:00 2001 From: LSC Bot Date: Tue, 3 Aug 2021 22:34:35 -0700 Subject: [PATCH] Migrate to connectivity_plus --- CHANGELOG.md | 16 +++-- example/pubspec.lock | 10 +-- lib/interceptor/retry/add_interceptor.dart | 2 +- .../dio_connectivity_request_retrial.dart | 2 +- pubspec.lock | 71 ++++++++++++++----- pubspec.yaml | 4 +- 6 files changed, 72 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3e486d..320ab6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,19 @@ -## [0.0.1] - Initial release. +## [2.0.1] - connectivity_plus. -- This is the initial release of this project +- Migrated from the deprecated connectivity plugin to connectivity_plus. -## [1.0.1] - Dependecies update. +## [2.0.0] - Null safety. -- Made updates dependencies +- Upgraded to null safety ## [1.0.2] - Network interceptor. - Added interceptor for request retrier when there is connectivity -## [2.0.0] - Null safety. +## [1.0.1] - Dependecies update. -- Upgraded to null safety +- Made updates dependencies + +## [0.0.1] - Initial release. + +- This is the initial release of this project diff --git a/example/pubspec.lock b/example/pubspec.lock index 1760239..c010a04 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -14,7 +14,7 @@ packages: name: analyzer url: "https://pub.dartlang.org" source: hosted - version: "1.7.1" + version: "1.7.2" args: dependency: transitive description: @@ -28,7 +28,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.6.0" + version: "2.7.0" boolean_selector: dependency: transitive description: @@ -63,7 +63,7 @@ packages: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" checked_yaml: dependency: transitive description: @@ -253,7 +253,7 @@ packages: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.7.0" package_config: dependency: transitive description: @@ -349,7 +349,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.3.0" + version: "0.4.2" typed_data: dependency: transitive description: diff --git a/lib/interceptor/retry/add_interceptor.dart b/lib/interceptor/retry/add_interceptor.dart index 8fdc5c8..5a2493e 100644 --- a/lib/interceptor/retry/add_interceptor.dart +++ b/lib/interceptor/retry/add_interceptor.dart @@ -1,4 +1,4 @@ -import 'package:connectivity/connectivity.dart'; +import 'package:connectivity_plus/connectivity_plus.dart'; import 'package:dio/dio.dart'; import 'package:flutter/foundation.dart'; diff --git a/lib/interceptor/retry/dio_connectivity_request_retrial.dart b/lib/interceptor/retry/dio_connectivity_request_retrial.dart index 8ed1192..ee874b5 100644 --- a/lib/interceptor/retry/dio_connectivity_request_retrial.dart +++ b/lib/interceptor/retry/dio_connectivity_request_retrial.dart @@ -1,6 +1,6 @@ import 'dart:async'; -import 'package:connectivity/connectivity.dart'; +import 'package:connectivity_plus/connectivity_plus.dart'; import 'package:dio/dio.dart'; class DioConnectivityRequestRetrier { diff --git a/pubspec.lock b/pubspec.lock index 2f05480..427e1d0 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -14,7 +14,7 @@ packages: name: analyzer url: "https://pub.dartlang.org" source: hosted - version: "1.7.1" + version: "1.7.2" args: dependency: transitive description: @@ -28,7 +28,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.6.0" + version: "2.7.0" boolean_selector: dependency: transitive description: @@ -105,7 +105,7 @@ packages: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.1" checked_yaml: dependency: transitive description: @@ -141,34 +141,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.6" + 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: @@ -190,6 +204,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.0.1" + dbus: + dependency: transitive + description: + name: dbus + url: "https://pub.dartlang.org" + source: hosted + version: "0.5.4" dio: dependency: "direct main" description: @@ -323,7 +344,7 @@ packages: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.7.0" mime: dependency: transitive description: @@ -352,6 +373,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.11.0" + petitparser: + dependency: transitive + description: + name: petitparser + url: "https://pub.dartlang.org" + source: hosted + version: "4.2.0" plugin_platform_interface: dependency: transitive description: @@ -454,7 +482,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.3.0" + version: "0.4.2" timing: dependency: transitive description: @@ -490,6 +518,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.1.0" + xml: + dependency: transitive + description: + name: xml + url: "https://pub.dartlang.org" + source: hosted + version: "5.1.2" yaml: dependency: transitive description: @@ -498,5 +533,5 @@ packages: source: hosted version: "3.1.0" sdks: - dart: ">=2.12.0 <3.0.0" + dart: ">=2.13.0 <3.0.0" flutter: ">=1.20.0" diff --git a/pubspec.yaml b/pubspec.yaml index de5f5ae..fbe727d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: jaynetwork description: A network handler for flutter. -version: 2.0.0 +version: 2.0.1 homepage: https://github.com/jbankz/JayNetworkHelper.git environment: @@ -14,7 +14,7 @@ dependencies: freezed: ^0.14.2 freezed_annotation: ^0.14.2 json_annotation: ^4.0.1 - connectivity: ^3.0.4 + connectivity_plus: ^1.0.0 dev_dependencies: flutter_test: