Skip to content

Commit a4976ae

Browse files
authored
Remove upper case constants (flutter#17)
* Remove usage of upper-case constants. * update SDK version * remove stable from Travis config
1 parent 09d4e70 commit a4976ae

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ language: dart
22

33
dart:
44
- dev
5-
- stable
6-
75
dart_task:
86
- test: --platform vm
97
- test: --platform firefox -j 1

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.6.7
2+
3+
* Update SDK version to 2.0.0-dev.17.0.
4+
15
## 1.6.6
26

37
* Fix a Dart 2 issue with inner stream transformation in `GuaranteeChannel`.

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: stream_channel
2-
version: 1.6.6
2+
version: 1.6.7-dev
33
description: An abstraction for two-way communication channels.
44
author: Dart Team <[email protected]>
55
homepage: https://github.com/dart-lang/stream_channel
66
environment:
7-
sdk: '>=1.21.0 <2.0.0'
7+
sdk: '>=2.0.0-dev.17.0 <2.0.0'
88
dependencies:
99
async: '>=1.11.0 <3.0.0'
1010
stack_trace: '^1.0.0'

test/json_document_transformer_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void main() {
2929
var transformed = channel.transform(jsonDocument);
3030
transformed.sink.add({"foo": "bar"});
3131
expect(sinkController.stream.first,
32-
completion(equals(JSON.encode({"foo": "bar"}))));
32+
completion(equals(jsonEncode({"foo": "bar"}))));
3333
});
3434

3535
test("supports the reviver function", () {

test/stream_channel_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void main() {
4343
test("transform() transforms the channel", () async {
4444
var transformed = channel
4545
.cast<List<int>>()
46-
.transform(new StreamChannelTransformer.fromCodec(UTF8));
46+
.transform(new StreamChannelTransformer.fromCodec(utf8));
4747

4848
streamController.add([102, 111, 111, 98, 97, 114]);
4949
streamController.close();

0 commit comments

Comments
 (0)