Skip to content

Commit 9fb4cfa

Browse files
authored
Update lints to latest, etc (#1048)
Updated min SDK on http_client_conformance_tests Bumped pkg:http version on some examples
1 parent 5e84d9f commit 9fb4cfa

File tree

14 files changed

+46
-77
lines changed

14 files changed

+46
-77
lines changed

.github/workflows/dart.yml

Lines changed: 21 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analysis_options.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,10 @@ linter:
1414
- avoid_returning_this
1515
- avoid_unused_constructor_parameters
1616
- cascade_invocations
17-
- comment_references
1817
- join_return_with_assignment
1918
- missing_whitespace_between_adjacent_strings
2019
- no_adjacent_strings_in_list
2120
- no_runtimeType_toString
22-
- prefer_const_constructors
2321
- prefer_const_declarations
2422
- prefer_expression_function_bodies
25-
- prefer_relative_imports
26-
- test_types_in_equals
2723
- use_string_buffers
28-
- use_super_parameters

pkgs/cronet_http/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 0.4.3-wip
2+
13
## 0.4.2
24

35
* Require `package:jni >= 0.7.2` to remove a potential buffer overflow.

pkgs/cronet_http/example/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Demonstrates how to use the cronet_http plugin.
44
publish_to: 'none'
55

66
environment:
7-
sdk: "^3.0.0"
7+
sdk: ^3.0.0
88

99
dependencies:
1010
cached_network_image: ^3.2.3
@@ -13,10 +13,10 @@ dependencies:
1313
cupertino_icons: ^1.0.2
1414
flutter:
1515
sdk: flutter
16-
http: ^0.13.5
16+
http: ^1.0.0
1717

1818
dev_dependencies:
19-
dart_flutter_team_lints: ^1.0.0
19+
dart_flutter_team_lints: ^2.0.0
2020
flutter_test:
2121
sdk: flutter
2222
http_client_conformance_tests:

pkgs/cronet_http/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: cronet_http
22
description: >
33
An Android Flutter plugin that provides access to the Cronet HTTP client.
4-
version: 0.4.2
4+
version: 0.4.3-wip
55
repository: https://github.com/dart-lang/http/tree/master/pkgs/cronet_http
66

77
environment:
@@ -15,7 +15,7 @@ dependencies:
1515
jni: ^0.7.2
1616

1717
dev_dependencies:
18-
dart_flutter_team_lints: ^1.0.0
18+
dart_flutter_team_lints: ^2.0.0
1919
jnigen: ^0.7.0
2020
xml: ^6.1.0
2121
yaml_edit: ^2.0.3

pkgs/cupertino_http/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.1.1-wip
2+
13
## 1.1.0
24

35
* Add websocket support to `cupertino_api`.

pkgs/cupertino_http/example/integration_test/client_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
import 'dart:async';
56
import 'dart:io';
67
import 'dart:typed_data';
78

@@ -45,7 +46,7 @@ void testClient(Client client) {
4546
}
4647
final request = StreamedRequest('POST', uri);
4748
request.sink.add(data);
48-
request.sink.close();
49+
unawaited(request.sink.close());
4950
await client.send(request);
5051
expect(serverHash, sha1.convert(data).bytes);
5152
});

pkgs/cupertino_http/example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ dependencies:
1616
cupertino_icons: ^1.0.2
1717
flutter:
1818
sdk: flutter
19-
http: ^0.13.5
19+
http: ^1.0.0
2020

2121
dev_dependencies:
2222
convert: ^3.1.1
2323
crypto: ^3.0.3
24-
dart_flutter_team_lints: ^1.0.0
24+
dart_flutter_team_lints: ^2.0.0
2525
ffi: ^2.0.1
2626
flutter_test:
2727
sdk: flutter

pkgs/cupertino_http/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: cupertino_http
22
description: >
33
A macOS/iOS Flutter plugin that provides access to the Foundation URL
44
Loading System.
5-
version: 1.1.0
5+
version: 1.1.1-wip
66
repository: https://github.com/dart-lang/http/tree/master/pkgs/cupertino_http
77

88
environment:
@@ -17,7 +17,7 @@ dependencies:
1717
http: '>=0.13.4 <2.0.0'
1818

1919
dev_dependencies:
20-
dart_flutter_team_lints: ^1.0.0
20+
dart_flutter_team_lints: ^2.0.0
2121
ffigen: ^9.0.1
2222

2323
flutter:

pkgs/flutter_http_example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ dependencies:
1717
fetch_client: ^1.0.2
1818
flutter:
1919
sdk: flutter
20-
http: ^0.13.5
20+
http: ^1.0.0
2121
provider: ^6.0.5
2222

2323
dev_dependencies:
24-
dart_flutter_team_lints: ^1.0.0
24+
dart_flutter_team_lints: ^2.0.0
2525
flutter_test:
2626
sdk: flutter
2727
integration_test:

pkgs/http/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.1.2-wip
2+
13
## 1.1.1
24

35
* `BrowserClient` throws `ClientException` when the `'Content-Length'` header

pkgs/http/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: http
2-
version: 1.1.1
2+
version: 1.1.2-wip
33
description: A composable, multi-platform, Future-based API for HTTP requests.
44
repository: https://github.com/dart-lang/http/tree/master/pkgs/http
55

@@ -13,7 +13,7 @@ dependencies:
1313
web: ^0.4.0
1414

1515
dev_dependencies:
16-
dart_flutter_team_lints: ^1.0.0
16+
dart_flutter_team_lints: ^2.0.0
1717
fake_async: ^1.2.0
1818
http_client_conformance_tests:
1919
path: ../http_client_conformance_tests/

pkgs/http_client_conformance_tests/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ publish_to: none
66
repository: https://github.com/dart-lang/http/tree/master/pkgs/http_client_conformance_tests
77

88
environment:
9-
sdk: '>=2.19.0 <3.0.0'
9+
sdk: ^3.0.0
1010

1111
dependencies:
1212
async: ^2.8.2
1313
dart_style: ^2.2.3
14-
http: '>=0.13.4 <2.0.0'
14+
http: ^1.0.0
1515
stream_channel: ^2.1.1
1616
test: ^1.21.2
1717

1818
dev_dependencies:
19-
dart_flutter_team_lints: ^1.0.0
19+
dart_flutter_team_lints: ^2.0.0

pkgs/java_http/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ dependencies:
1414
path: ^1.8.0
1515

1616
dev_dependencies:
17-
dart_flutter_team_lints: ^1.0.0
17+
dart_flutter_team_lints: ^2.0.0
1818
http_client_conformance_tests:
1919
path: ../http_client_conformance_tests/
2020
jnigen: ^0.5.0
21-
lints: ^2.0.0
2221
test: ^1.21.0

0 commit comments

Comments
 (0)