File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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+
15## 0.1.8
26
37* 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';
1010
1111Future <void > main (List <String > args) async {
1212 final PigeonOptions opts = Pigeon .parseArgs (args);
13- assert (opts.input != null );
14- final String rawInputPath = opts.input;
1513 final Directory tempDir = Directory .systemTemp.createTempSync ();
16- final String absInputPath = File (rawInputPath).absolute.path;
17- final String relInputPath = path.relative (absInputPath, from: tempDir.path);
1814
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+ }
2122 final String code = """$importLine
2223import 'dart:io';
2324import 'dart:isolate';
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import 'dart:mirrors';
88import 'ast.dart' ;
99
1010/// The current version of pigeon.
11- const String pigeonVersion = '0.1.8 ' ;
11+ const String pigeonVersion = '0.1.9 ' ;
1212
1313/// Read all the content from [stdin] to a String.
1414String readStdin () {
Original file line number Diff line number Diff line change 11name : pigeon
2- version : 0.1.8
2+ version : 0.1.9
33description : Code generator tool to make communication between Flutter and the host platform type-safe and easier.
44homepage : https://github.com/flutter/packages/tree/master/packages/pigeon
55dependencies :
Original file line number Diff line number Diff line change @@ -73,6 +73,11 @@ test_pigeon_android() {
7373pub get
7474pub run test test/
7575
76+ # ##############################################################################
77+ # Execute without arguments test
78+ # ##############################################################################
79+ pub run pigeon
80+
7681# ##############################################################################
7782# Compilation tests (Code is generated and compiled)
7883# ##############################################################################
You can’t perform that action at this time.
0 commit comments