Skip to content

Commit cb22b39

Browse files
[pigeon] Enable NNBD in tool (#1532)
Opts Pigeon into running in NNBD mode. All of the code had already been converted. Also updates a legacy Dart command (dart pub run) in the test script to the modern version.
1 parent 48cdaf6 commit cb22b39

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

packages/pigeon/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 3.0.1
2+
3+
* Enables NNBD for the Pigeon tool itself.
4+
* [tests] Updates legacy Dart commands.
5+
16
## 3.0.0
27

38
* **BREAKING CHANGE**: Removes the `--dart_null_safety` flag. Generated Dart

packages/pigeon/bin/pigeon.dart

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

5-
// @dart = 2.2
6-
75
import 'dart:io' show exit;
86

97
import 'package:pigeon/pigeon_cl.dart';

packages/pigeon/bin/run_tests.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ Future<int> _runPigeon(
209209
bool streamOutput = true}) async {
210210
const bool hasDart = false;
211211
final List<String> args = <String>[
212-
'pub',
213212
'run',
214213
'pigeon',
215214
'--input',

packages/pigeon/lib/generator_tools.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'dart:mirrors';
88
import 'ast.dart';
99

1010
/// The current version of pigeon. This must match the version in pubspec.yaml.
11-
const String pigeonVersion = '3.0.0';
11+
const String pigeonVersion = '3.0.1';
1212

1313
/// Read all the content from [stdin] to a String.
1414
String readStdin() {

packages/pigeon/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: pigeon
22
description: Code generator tool to make communication between Flutter and the host platform type-safe and easier.
33
repository: https://github.com/flutter/packages/tree/main/packages/pigeon
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Apigeon
5-
version: 3.0.0 # This must match the version in lib/generator_tools.dart
5+
version: 3.0.1 # This must match the version in lib/generator_tools.dart
66

77
environment:
88
sdk: ">=2.12.0 <3.0.0"

0 commit comments

Comments
 (0)