Skip to content

Commit 582b93f

Browse files
feat(network_info_plus)!: Bump win32 from 5.15.0 to 6.0.0 (#3761)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Volodymyr <v.buberenko@gmail.com>
1 parent c46ab89 commit 582b93f

File tree

12 files changed

+232
-244
lines changed

12 files changed

+232
-244
lines changed

.github/workflows/network_info_plus.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ jobs:
177177
run: ./.github/workflows/scripts/build-examples.sh windows ./lib/main.dart
178178

179179
windows_integration_test:
180-
if: false # TODO: reinstate this when the windows implementation is fixed
181180
runs-on: windows-latest
182181
timeout-minutes: 30
183182
steps:

packages/network_info_plus/network_info_plus/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ The functionality is not supported on Web.
1919

2020
## Requirements
2121

22-
- Flutter >=3.3.0
23-
- Dart >=2.18.0 <4.0.0
24-
- iOS >=12.0
25-
- macOS >=10.14
22+
- Flutter >=3.41.0
23+
- Dart >=3.11.0 <4.0.0
24+
- iOS >=13.0
25+
- macOS >=10.15
2626
- Java 17
2727
- Kotlin 2.2.0
2828
- Android Gradle Plugin >=8.12.1

packages/network_info_plus/network_info_plus/lib/src/network_info_plus_linux.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import 'package:nm/nm.dart';
99
// ignore_for_file: public_member_api_docs
1010

1111
typedef _DeviceGetter = Future<String?> Function(NetworkManagerDevice? device);
12-
typedef _ConnectionGetter = Future<String?> Function(
13-
NetworkManagerActiveConnection? connection);
12+
typedef _ConnectionGetter =
13+
Future<String?> Function(NetworkManagerActiveConnection? connection);
1414

1515
@visibleForTesting
1616
typedef NetworkManagerClientFactory = NetworkManagerClient Function();
@@ -76,8 +76,9 @@ class NetworkInfoPlusLinuxPlugin extends NetworkInfoPlatform {
7676

7777
Future<String?> _getDeviceValue(_DeviceGetter getter) {
7878
return _getConnectionValue((connection) {
79-
final device = connection?.devices
80-
.firstWhereOrNull((device) => device.wireless != null);
79+
final device = connection?.devices.firstWhereOrNull(
80+
(device) => device.wireless != null,
81+
);
8182
return getter(device);
8283
});
8384
}

0 commit comments

Comments
 (0)