File tree Expand file tree Collapse file tree 5 files changed +18
-8
lines changed Expand file tree Collapse file tree 5 files changed +18
-8
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.1.9
2
+
3
+ * Fixed bug where executing pigeon without arguments would crash (introduced in 0.1.8).
4
+
1
5
## 0.1.8
2
6
3
7
* Started spawning pigeon_lib in an isolate instead of a subprocess. The
Original file line number Diff line number Diff line change @@ -10,14 +10,15 @@ import 'package:pigeon/pigeon_lib.dart';
10
10
11
11
Future <void > main (List <String > args) async {
12
12
final PigeonOptions opts = Pigeon .parseArgs (args);
13
- assert (opts.input != null );
14
- final String rawInputPath = opts.input;
15
13
final Directory tempDir = Directory .systemTemp.createTempSync ();
16
- final String absInputPath = File (rawInputPath).absolute.path;
17
- final String relInputPath = path.relative (absInputPath, from: tempDir.path);
18
14
19
- final String importLine =
20
- (opts.input != null ) ? 'import \' $relInputPath \' ;\n ' : '' ;
15
+ String importLine = '' ;
16
+ if (opts.input != null ) {
17
+ final String rawInputPath = opts.input;
18
+ final String absInputPath = File (rawInputPath).absolute.path;
19
+ final String relInputPath = path.relative (absInputPath, from: tempDir.path);
20
+ importLine = 'import \' $relInputPath \' ;\n ' ;
21
+ }
21
22
final String code = """$importLine
22
23
import 'dart:io';
23
24
import 'dart:isolate';
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import 'dart:mirrors';
8
8
import 'ast.dart' ;
9
9
10
10
/// The current version of pigeon.
11
- const String pigeonVersion = '0.1.8 ' ;
11
+ const String pigeonVersion = '0.1.9 ' ;
12
12
13
13
/// Read all the content from [stdin] to a String.
14
14
String readStdin () {
Original file line number Diff line number Diff line change 1
1
name : pigeon
2
- version : 0.1.8
2
+ version : 0.1.9
3
3
description : Code generator tool to make communication between Flutter and the host platform type-safe and easier.
4
4
homepage : https://github.com/flutter/packages/tree/master/packages/pigeon
5
5
dependencies :
Original file line number Diff line number Diff line change @@ -73,6 +73,11 @@ test_pigeon_android() {
73
73
pub get
74
74
pub run test test/
75
75
76
+ # ##############################################################################
77
+ # Execute without arguments test
78
+ # ##############################################################################
79
+ pub run pigeon
80
+
76
81
# ##############################################################################
77
82
# Compilation tests (Code is generated and compiled)
78
83
# ##############################################################################
You can’t perform that action at this time.
0 commit comments