Skip to content

Commit 5f558d7

Browse files
authored
initial null safe conversion of tool/plugin (#5454)
initial null safe conversion of tool/plugin
1 parent acfd0fa commit 5f558d7

File tree

12 files changed

+28
-8
lines changed

12 files changed

+28
-8
lines changed

resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@
592592
<h2>38.2</h2>
593593
<ul>
594594
<li>Fix bug on Windows that prevented outlines from displaying</li>
595-
<li>Restore the ability to run individual tests </li>
595+
<li>Restore the ability to run individual tests</li>
596596
<li>Fix a couple other issues</li>
597597
</ul>
598598
<h2>38.1</h2>

tool/plugin/bin/main.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright 2017 The Chromium Authors. All rights reserved. Use of this source
22
// code is governed by a BSD-style license that can be found in the LICENSE file.
33

4+
// @dart = 2.10
5+
46
import 'dart:io';
57

68
import 'package:plugin_tool/plugin.dart' as plugin;

tool/plugin/lib/artifact.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright 2017 The Chromium Authors. All rights reserved. Use of this source
22
// code is governed by a BSD-style license that can be found in the LICENSE file.
33

4+
// @dart = 2.10
5+
46
import 'dart:async';
57
import 'dart:io';
68

tool/plugin/lib/build_spec.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright 2017 The Chromium Authors. All rights reserved. Use of this source
22
// code is governed by a BSD-style license that can be found in the LICENSE file.
33

4+
// @dart = 2.10
5+
46
import 'dart:async';
57
import 'dart:io';
68

tool/plugin/lib/edit.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* found in the LICENSE file.
55
*/
66

7+
// @dart = 2.10
8+
79
import 'dart:async';
810
import 'dart:io';
911

tool/plugin/lib/globals.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright 2017 The Chromium Authors. All rights reserved. Use of this source
22
// code is governed by a BSD-style license that can be found in the LICENSE file.
33

4+
// @dart = 2.10
5+
46
// Map plugin ID to JetBrains registry ID.
57
const Map<String, String> pluginRegistryIds = const {
68
'io.flutter': '9212',

tool/plugin/lib/lint.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright 2017 The Chromium Authors. All rights reserved. Use of this source
22
// code is governed by a BSD-style license that can be found in the LICENSE file.
33

4+
// @dart = 2.10
5+
46
import 'dart:async';
57
import 'dart:io';
68

tool/plugin/lib/plugin.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright 2017 The Chromium Authors. All rights reserved. Use of this source
22
// code is governed by a BSD-style license that can be found in the LICENSE file.
33

4+
// @dart = 2.10
5+
46
import 'dart:async';
57
import 'dart:convert';
68
import 'dart:io';
@@ -184,7 +186,7 @@ Future<bool> performReleaseChecks(ProductCommand cmd) async {
184186
var gitDir = await GitDir.fromExisting(rootPath);
185187
var isClean = await gitDir.isWorkingTreeClean();
186188
if (isClean) {
187-
var branch = await gitDir.getCurrentBranch();
189+
var branch = await gitDir.currentBranch();
188190
var name = branch.branchName;
189191
var expectedName =
190192
cmd.isDevChannel ? 'master' : "release_${cmd.releaseMajor}";

tool/plugin/lib/runner.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright 2017 The Chromium Authors. All rights reserved. Use of this source
22
// code is governed by a BSD-style license that can be found in the LICENSE file.
33

4+
// @dart = 2.10
5+
46
import 'dart:async';
57
import 'dart:io';
68

tool/plugin/lib/util.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright 2017 The Chromium Authors. All rights reserved. Use of this source
22
// code is governed by a BSD-style license that can be found in the LICENSE file.
33

4+
// @dart = 2.10
5+
46
import 'dart:async';
57
import 'dart:convert';
68
import 'dart:io';

0 commit comments

Comments
 (0)