Visitar URL original
[pigeon] added dart version annotations until pigeon is migrated (#243) · creatorpiyush/packages@a6d3354 · GitHub
Skip to content

Commit a6d3354

Browse files
authored
[pigeon] added dart version annotations until pigeon is migrated (flutter#243)
1 parent b45e1fe commit a6d3354

4 files changed

Lines changed: 8 additions & 3 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.15
2+
3+
* Added support for running in versions of Dart that support NNBD.
4+
15
## 0.1.14
26

37
* [Windows] Fixed executing from drives other than C:.

‎packages/pigeon/bin/pigeon.dart‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2020 The Flutter Authors. All rights reserved.
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
4-
4+
// @dart = 2.2
55
import 'dart:async';
66
import 'dart:io';
77
import 'dart:isolate';
@@ -34,6 +34,7 @@ Future<void> main(List<String> args) async {
3434
importLine = 'import \'$relInputPath\';\n';
3535
}
3636
final String code = """$importLine
37+
// @dart = 2.2
3738
import 'dart:io';
3839
import 'dart:isolate';
3940
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.14';
11+
const String pigeonVersion = '0.1.15';
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.14
2+
version: 0.1.15
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)