Visitar URL original
[pigeon] Fixed running with Dart versions with NNBD enabled (moved im… · creatorpiyush/packages@4797a0d · GitHub
Skip to content

Commit 4797a0d

Browse files
authored
[pigeon] Fixed running with Dart versions with NNBD enabled (moved import). (flutter#251)
1 parent a6d3354 commit 4797a0d

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎packages/pigeon/CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.16
2+
3+
* Fixed running in certain environments where NNBD is enabled by default.
4+
15
## 0.1.15
26

37
* Added support for running in versions of Dart that support NNBD.

‎packages/pigeon/bin/pigeon.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ Future<void> main(List<String> args) async {
3333
final String relInputPath = _posixRelative(opts.input, from: tempDir.path);
3434
importLine = 'import \'$relInputPath\';\n';
3535
}
36-
final String code = """$importLine
37-
// @dart = 2.2
36+
final String code = """// @dart = 2.2
37+
$importLine
3838
import 'dart:io';
3939
import 'dart:isolate';
4040
import 'package:pigeon/pigeon_lib.dart';

‎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.
11-
const String pigeonVersion = '0.1.15';
11+
const String pigeonVersion = '0.1.16';
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
@@ -1,5 +1,5 @@
11
name: pigeon
2-
version: 0.1.15
2+
version: 0.1.16
33
description: Code generator tool to make communication between Flutter and the host platform type-safe and easier.
44
homepage: https://github.com/flutter/packages/tree/master/packages/pigeon
55
dependencies:

0 commit comments

Comments
 (0)