Skip to content

Commit

Permalink
[pigeon] Enable NNBD in tool (#1532)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stuartmorgan committed Apr 19, 2022
1 parent 48cdaf6 commit cb22b39
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/pigeon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 3.0.1

* Enables NNBD for the Pigeon tool itself.
* [tests] Updates legacy Dart commands.

## 3.0.0

* **BREAKING CHANGE**: Removes the `--dart_null_safety` flag. Generated Dart
Expand Down
2 changes: 0 additions & 2 deletions packages/pigeon/bin/pigeon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// @dart = 2.2

import 'dart:io' show exit;

import 'package:pigeon/pigeon_cl.dart';
Expand Down
1 change: 0 additions & 1 deletion packages/pigeon/bin/run_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ Future<int> _runPigeon(
bool streamOutput = true}) async {
const bool hasDart = false;
final List<String> args = <String>[
'pub',
'run',
'pigeon',
'--input',
Expand Down
2 changes: 1 addition & 1 deletion packages/pigeon/lib/generator_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'dart:mirrors';
import 'ast.dart';

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

/// Read all the content from [stdin] to a String.
String readStdin() {
Expand Down
2 changes: 1 addition & 1 deletion packages/pigeon/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: pigeon
description: Code generator tool to make communication between Flutter and the host platform type-safe and easier.
repository: https://github.com/flutter/packages/tree/main/packages/pigeon
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Apigeon
version: 3.0.0 # This must match the version in lib/generator_tools.dart
version: 3.0.1 # This must match the version in lib/generator_tools.dart

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down

0 comments on commit cb22b39

Please sign in to comment.