diff --git a/packages/connectivity/connectivity_platform_interface/CHANGELOG.md b/packages/connectivity/connectivity_platform_interface/CHANGELOG.md index 3766106f9b0b..d249985c65f4 100644 --- a/packages/connectivity/connectivity_platform_interface/CHANGELOG.md +++ b/packages/connectivity/connectivity_platform_interface/CHANGELOG.md @@ -1,8 +1,3 @@ -## 2.0.0 - -* Added `ConnectivityResult.unknown`, for the cases where the plugin is unable to determine the -connectivity status of the device. _(This happens mostly in the `web` platform.)_ - ## 1.0.3 * Make the pedantic dev_dependency explicit. diff --git a/packages/connectivity/connectivity_platform_interface/lib/src/enums.dart b/packages/connectivity/connectivity_platform_interface/lib/src/enums.dart index a2d5f8d10f10..9d8cef9e1a66 100644 --- a/packages/connectivity/connectivity_platform_interface/lib/src/enums.dart +++ b/packages/connectivity/connectivity_platform_interface/lib/src/enums.dart @@ -7,10 +7,7 @@ enum ConnectivityResult { mobile, /// None: Device not connected to any network - none, - - /// Unknown: The plugin wasn't able to determine the connectivity status of the device - unknown, + none } /// The status of the location service authorization. diff --git a/packages/connectivity/connectivity_platform_interface/lib/src/utils.dart b/packages/connectivity/connectivity_platform_interface/lib/src/utils.dart index ae412e89c7c9..2ae22e1c9fc3 100644 --- a/packages/connectivity/connectivity_platform_interface/lib/src/utils.dart +++ b/packages/connectivity/connectivity_platform_interface/lib/src/utils.dart @@ -8,9 +8,8 @@ ConnectivityResult parseConnectivityResult(String state) { case 'mobile': return ConnectivityResult.mobile; case 'none': - return ConnectivityResult.none; default: - return ConnectivityResult.unknown; + return ConnectivityResult.none; } } diff --git a/packages/connectivity/connectivity_platform_interface/pubspec.yaml b/packages/connectivity/connectivity_platform_interface/pubspec.yaml index 489515cebc51..78f9473c4452 100644 --- a/packages/connectivity/connectivity_platform_interface/pubspec.yaml +++ b/packages/connectivity/connectivity_platform_interface/pubspec.yaml @@ -3,7 +3,7 @@ description: A common platform interface for the connectivity plugin. homepage: https://github.com/flutter/plugins/tree/master/packages/connectivity/connectivity_platform_interface # NOTE: We strongly prefer non-breaking changes, even at the expense of a # less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes -version: 2.0.0 +version: 1.0.3 dependencies: flutter: