Skip to content

Commit

Permalink
Remove upper case constants (flutter#17)
Browse files Browse the repository at this point in the history
* Remove usage of upper-case constants.

* update SDK version
* remove stable from Travis config
  • Loading branch information
lrhn authored Jun 1, 2018
1 parent 09d4e70 commit a4976ae
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ language: dart

dart:
- dev
- stable

dart_task:
- test: --platform vm
- test: --platform firefox -j 1
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.6.7

* Update SDK version to 2.0.0-dev.17.0.

## 1.6.6

* Fix a Dart 2 issue with inner stream transformation in `GuaranteeChannel`.
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: stream_channel
version: 1.6.6
version: 1.6.7-dev
description: An abstraction for two-way communication channels.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/stream_channel
environment:
sdk: '>=1.21.0 <2.0.0'
sdk: '>=2.0.0-dev.17.0 <2.0.0'
dependencies:
async: '>=1.11.0 <3.0.0'
stack_trace: '^1.0.0'
Expand Down
2 changes: 1 addition & 1 deletion test/json_document_transformer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void main() {
var transformed = channel.transform(jsonDocument);
transformed.sink.add({"foo": "bar"});
expect(sinkController.stream.first,
completion(equals(JSON.encode({"foo": "bar"}))));
completion(equals(jsonEncode({"foo": "bar"}))));
});

test("supports the reviver function", () {
Expand Down
2 changes: 1 addition & 1 deletion test/stream_channel_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void main() {
test("transform() transforms the channel", () async {
var transformed = channel
.cast<List<int>>()
.transform(new StreamChannelTransformer.fromCodec(UTF8));
.transform(new StreamChannelTransformer.fromCodec(utf8));

streamController.add([102, 111, 111, 98, 97, 114]);
streamController.close();
Expand Down

0 comments on commit a4976ae

Please sign in to comment.