Support the latest pkg/quiver, require the latest pkg/build_runner
MODIFY
pubspec.yaml
pubspec.yaml
@@ -10,11 +10,11 @@ dependencies:
http: '^0.11.3'
json_serializable: '^0.2.1'
markdown: '^0.11.1'
- quiver: '>=0.20.0 <0.25.0'
+ quiver: '>=0.20.0 <0.26.0'
xml: '^2.0.0'
dev_dependencies:
browser: '^0.10.0+2'
- build_runner: ^0.3.0
+ build_runner: ^0.5.0
source_gen: '^0.7.0'
test: '^0.12.0'
mockito: '^1.0.1'

MODIFY
tool/build.dart
tool/build.dart
@@ -10,5 +10,5 @@ import 'package:build_runner/build_runner.dart';
import 'phases.dart';
Future main() async {
- await build(phases, deleteFilesByDefault: true);
+ await build(buildActions, deleteFilesByDefault: true);
}

MODIFY
tool/phases.dart
tool/phases.dart
@@ -2,8 +2,11 @@ import 'package:build_runner/build_runner.dart';
import 'package:json_serializable/generators.dart';
import 'package:source_gen/source_gen.dart';
-final PhaseGroup phases = new PhaseGroup.singleAction(
+final buildActions = <BuildAction>[
+ new BuildAction(
new PartBuilder(const [
const JsonSerializableGenerator(),
]),
- new InputSet('github', const ['lib/src/common.dart']));
+ 'github',
+ inputs: ['lib/src/common.dart'])
+];

MODIFY
tool/watch.dart
tool/watch.dart
@@ -7,5 +7,5 @@ import 'package:build_runner/build_runner.dart';
import 'phases.dart';
void main() {
- watch(phases, deleteFilesByDefault: true);
+ watch(buildActions, deleteFilesByDefault: true);
}

Support the latest pkg/quiver, require the latest pkg/build_runner