diff --git a/pkgs/cronet_http/CHANGELOG.md b/pkgs/cronet_http/CHANGELOG.md index 6d230165b7..e415bf641f 100644 --- a/pkgs/cronet_http/CHANGELOG.md +++ b/pkgs/cronet_http/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.4.1 + +* Fix obsolete `CronetClient()` constructor usage. + ## 0.4.0 * Use more efficient operations when copying bytes between Java and Dart. diff --git a/pkgs/cronet_http/lib/cronet_http.dart b/pkgs/cronet_http/lib/cronet_http.dart index e41af71f9e..fe6499fc6d 100644 --- a/pkgs/cronet_http/lib/cronet_http.dart +++ b/pkgs/cronet_http/lib/cronet_http.dart @@ -10,7 +10,7 @@ /// import 'package:cronet_http/cronet_http.dart'; /// /// void main() async { -/// var client = CronetClient(); +/// var client = CronetClient.defaultCronetEngine(); /// final response = await client.get( /// Uri.https('www.googleapis.com', '/books/v1/volumes', {'q': '{http}'})); /// if (response.statusCode != 200) { diff --git a/pkgs/cronet_http/lib/src/cronet_client.dart b/pkgs/cronet_http/lib/src/cronet_client.dart index 69143208fc..c4d0d19006 100644 --- a/pkgs/cronet_http/lib/src/cronet_client.dart +++ b/pkgs/cronet_http/lib/src/cronet_client.dart @@ -235,7 +235,7 @@ jb.UrlRequestCallbackProxy_UrlRequestCallbackInterface _urlRequestCallbacks( /// For example: /// ``` /// void main() async { -/// var client = CronetClient(); +/// var client = CronetClient.defaultCronetEngine(); /// final response = await client.get( /// Uri.https('www.googleapis.com', '/books/v1/volumes', {'q': '{http}'})); /// if (response.statusCode != 200) { diff --git a/pkgs/cronet_http/pubspec.yaml b/pkgs/cronet_http/pubspec.yaml index 37ba7afcbd..70d56f7788 100644 --- a/pkgs/cronet_http/pubspec.yaml +++ b/pkgs/cronet_http/pubspec.yaml @@ -1,7 +1,7 @@ name: cronet_http description: > An Android Flutter plugin that provides access to the Cronet HTTP client. -version: 0.4.0 +version: 0.4.1 repository: https://github.com/dart-lang/http/tree/master/pkgs/cronet_http environment: