Skip to content

Commit

Permalink
[device_info] Fix pedantic errors (flutter#2314)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Klimushyn authored Dec 3, 2019
1 parent 118c29f commit 408863d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
5 changes: 5 additions & 0 deletions packages/device_info/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.4.1+3

* Fix pedantic errors. Adds some missing documentation and fixes unawaited
futures in the tests.

## 0.4.1+2

* Remove AndroidX warning.
Expand Down
11 changes: 0 additions & 11 deletions packages/device_info/analysis_options.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions packages/device_info/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// ignore_for_file: public_member_api_docs

import 'dart:async';

import 'dart:io';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Future<void> main() async {
final FlutterDriver driver = await FlutterDriver.connect();
final String result =
await driver.requestData(null, timeout: const Duration(minutes: 1));
driver.close();
await driver.close();
exit(result == 'pass' ? 0 : 1);
}
2 changes: 2 additions & 0 deletions packages/device_info/lib/device_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import 'package:flutter/services.dart';

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

/// Channel used to communicate to native code.
Expand Down
2 changes: 1 addition & 1 deletion packages/device_info/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Flutter plugin providing detailed information about the device
(make, model, etc.), and Android or iOS version the app is running on.
author: Flutter Team <flutter-dev@googlegroups.com>
homepage: https://github.com/flutter/plugins/tree/master/packages/device_info
version: 0.4.1+2
version: 0.4.1+3

flutter:
plugin:
Expand Down

0 comments on commit 408863d

Please sign in to comment.