Remove upper case constants (#19)
diff --git a/.travis.yml b/.travis.yml
index b35c9f6..f21e9b1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,6 +2,9 @@
script: ./tool/travis.sh
+dart:
+ - dev
+
# Speed up builds by using containerization. Disable this if you need to use
# sudo in your scripts.
sudo: false
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b3cd92a..36b60e0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 0.1.10
+
+* Update th SDK dependency to 2.0.0-dev.17.0.
+* Remove usages of deprecated upper-case constants from the SDK.
+
## 0.1.9
* Update the worker_protocol.pb.dart file with the latest proto generator.
diff --git a/lib/src/driver/driver_connection.dart b/lib/src/driver/driver_connection.dart
index 29a00a1..6c26901 100644
--- a/lib/src/driver/driver_connection.dart
+++ b/lib/src/driver/driver_connection.dart
@@ -56,7 +56,7 @@
} catch (_) {
try {
// Try parsing the message as a string and set that as the output.
- var output = UTF8.decode(buffer);
+ var output = utf8.decode(buffer);
var response = new WorkResponse()
..exitCode = EXIT_CODE_ERROR
..output = 'Worker sent an invalid response:\n$output';
diff --git a/pubspec.yaml b/pubspec.yaml
index 12ed59c..2d81df7 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -5,7 +5,7 @@
homepage: https://github.com/dart-lang/bazel_worker
environment:
- sdk: '>=1.22.1 <2.0.0'
+ sdk: '>=2.0.0-dev.17.0 <2.0.0'
dependencies:
async: ">1.9.0 <3.0.0"