Skip to content

Commit e332ece

Browse files
authored
[connectivity_plus] Clarify ConnectivityResult.none type (#832)
1 parent cda84d5 commit e332ece

5 files changed

Lines changed: 13 additions & 5 deletions

File tree

packages/connectivity_plus/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.2.1
2+
3+
* Clarify ConnectivityResult.none type.
4+
* Update plugin requirements version in README.
5+
16
## 1.2.0
27

38
* Update minimum Flutter and Dart version to 3.13 and 3.1.

packages/connectivity_plus/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ This package is not an _endorsed_ implementation of `connectivity_plus`. Therefo
1010

1111
```yaml
1212
dependencies:
13-
connectivity_plus: ^4.0.1
14-
connectivity_plus_tizen: ^1.2.0
13+
connectivity_plus: ^6.1.0
14+
connectivity_plus_tizen: ^1.2.1
1515
```
1616
1717
Then you can import `connectivity_plus` in your Dart code:

packages/connectivity_plus/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: connectivity_plus_tizen
22
description: Tizen implementation of the connectivity_plus plugin.
33
homepage: https://github.com/flutter-tizen/plugins
44
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/connectivity_plus
5-
version: 1.2.0
5+
version: 1.2.1
66

77
environment:
88
sdk: ">=3.1.0 <4.0.0"

packages/connectivity_plus/tizen/src/connection.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ static ConnectionType ToConnectionType(connection_type_e type) {
1717
case CONNECTION_TYPE_BT:
1818
return ConnectionType::kBluetooth;
1919
case CONNECTION_TYPE_DISCONNECTED:
20-
default:
2120
return ConnectionType::kNone;
21+
case CONNECTION_TYPE_NET_PROXY:
22+
default:
23+
return ConnectionType::kOther;
2224
}
2325
}
2426

packages/connectivity_plus/tizen/src/connection.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ enum class ConnectionType {
1717
kWiFi,
1818
kMobile,
1919
kBluetooth,
20-
kError
20+
kError,
21+
kOther,
2122
};
2223

2324
typedef std::function<void(ConnectionType)> ConnectionTypeCallback;

0 commit comments

Comments
 (0)