Skip to content

Commit f953aec

Browse files
authored
Fix obsolete CronetClient() constructor usage (#1042)
1 parent 04777ac commit f953aec

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

pkgs/cronet_http/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.1
2+
3+
* Fix obsolete `CronetClient()` constructor usage.
4+
15
## 0.4.0
26

37
* Use more efficient operations when copying bytes between Java and Dart.

pkgs/cronet_http/lib/cronet_http.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/// import 'package:cronet_http/cronet_http.dart';
1111
///
1212
/// void main() async {
13-
/// var client = CronetClient();
13+
/// var client = CronetClient.defaultCronetEngine();
1414
/// final response = await client.get(
1515
/// Uri.https('www.googleapis.com', '/books/v1/volumes', {'q': '{http}'}));
1616
/// if (response.statusCode != 200) {

pkgs/cronet_http/lib/src/cronet_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface _urlRequestCallbacks(
235235
/// For example:
236236
/// ```
237237
/// void main() async {
238-
/// var client = CronetClient();
238+
/// var client = CronetClient.defaultCronetEngine();
239239
/// final response = await client.get(
240240
/// Uri.https('www.googleapis.com', '/books/v1/volumes', {'q': '{http}'}));
241241
/// if (response.statusCode != 200) {

pkgs/cronet_http/pubspec.yaml

Lines changed: 1 addition & 1 deletion
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.0
4+
version: 0.4.1
55
repository: https://github.com/dart-lang/http/tree/master/pkgs/cronet_http
66

77
environment:

0 commit comments

Comments
 (0)