1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-25 20:38:50 +00:00

Migrate from connectivity to connectivity_plus

This commit is contained in:
Pierre HUBERT 2022-03-10 18:37:59 +01:00
parent 49a9186978
commit c199540aff
4 changed files with 44 additions and 16 deletions

View File

@ -5,7 +5,7 @@
// ignore_for_file: directives_ordering
// ignore_for_file: lines_longer_than_80_chars
import 'package:connectivity_for_web/connectivity_for_web.dart';
import 'package:connectivity_plus_web/connectivity_plus_web.dart';
import 'package:file_picker/_internal/file_picker_web.dart';
import 'package:firebase_core_web/firebase_core_web.dart';
import 'package:firebase_messaging_web/firebase_messaging_web.dart';
@ -19,7 +19,7 @@ import 'package:flutter_web_plugins/flutter_web_plugins.dart';
// ignore: public_member_api_docs
void registerPlugins(Registrar registrar) {
ConnectivityPlugin.registerWith(registrar);
ConnectivityPlusPlugin.registerWith(registrar);
FilePickerWeb.registerWith(registrar);
FirebaseCoreWeb.registerWith(registrar);
FirebaseMessagingWeb.registerWith(registrar);

View File

@ -7,7 +7,7 @@ import 'package:comunic/models/config.dart';
import 'package:comunic/ui/widgets/init_widget.dart';
import 'package:comunic/utils/flutter_utils.dart';
import 'package:comunic/utils/intl_utils.dart';
import 'package:connectivity/connectivity.dart';
import 'package:connectivity_plus/connectivity_plus.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

View File

@ -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.6"
connectivity_for_web:
version: "2.2.1"
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+1"
connectivity_macos:
version: "1.3.0"
connectivity_plus_macos:
dependency: transitive
description:
name: connectivity_macos
name: connectivity_plus_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.1+2"
connectivity_platform_interface:
version: "1.2.1"
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.2.0"
connectivity_plus_web:
dependency: transitive
description:
name: connectivity_plus_web
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
connectivity_plus_windows:
dependency: transitive
description:
name: connectivity_plus_windows
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
cross_file:
dependency: transitive
description:
@ -162,6 +176,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
dbus:
dependency: transitive
description:
name: dbus
url: "https://pub.dartlang.org"
source: hosted
version: "0.7.1"
dio:
dependency: "direct main"
description:
@ -450,6 +471,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
nm:
dependency: transitive
description:
name: nm
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.0"
octo_image:
dependency: transitive
description:

View File

@ -71,7 +71,7 @@ dependencies:
photo_view: ^0.13.0
# Check Internet connection
connectivity: ^3.0.2
connectivity_plus: ^2.2.1
# Establish WebSocket connections
web_socket_channel: ^2.1.0