Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 408863d

Browse files
author
Michael Klimushyn
authored
[device_info] Fix pedantic errors (#2314)
1 parent 118c29f commit 408863d

6 files changed

Lines changed: 11 additions & 13 deletions

File tree

packages/device_info/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.4.1+3
2+
3+
* Fix pedantic errors. Adds some missing documentation and fixes unawaited
4+
futures in the tests.
5+
16
## 0.4.1+2
27

38
* Remove AndroidX warning.

packages/device_info/analysis_options.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/device_info/example/lib/main.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
// ignore_for_file: public_member_api_docs
6+
57
import 'dart:async';
68

79
import 'dart:io';

packages/device_info/example/test_driver/device_info_e2e_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Future<void> main() async {
1010
final FlutterDriver driver = await FlutterDriver.connect();
1111
final String result =
1212
await driver.requestData(null, timeout: const Duration(minutes: 1));
13-
driver.close();
13+
await driver.close();
1414
exit(result == 'pass' ? 0 : 1);
1515
}

packages/device_info/lib/device_info.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import 'package:flutter/services.dart';
88

99
/// Provides device and operating system information.
1010
class DeviceInfoPlugin {
11+
/// No work is done when instantiating the plugin. It's safe to call this
12+
/// repeatedly or in performance-sensitive blocks.
1113
DeviceInfoPlugin();
1214

1315
/// Channel used to communicate to native code.

packages/device_info/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin providing detailed information about the device
33
(make, model, etc.), and Android or iOS version the app is running on.
44
author: Flutter Team <[email protected]>
55
homepage: https://github.com/flutter/plugins/tree/master/packages/device_info
6-
version: 0.4.1+2
6+
version: 0.4.1+3
77

88
flutter:
99
plugin:

0 commit comments

Comments
 (0)