Skip to content

Commit

Permalink
Fix obsolete CronetClient() constructor usage (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan authored Nov 2, 2023
1 parent 04777ac commit f953aec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions pkgs/cronet_http/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/cronet_http/lib/cronet_http.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/cronet_http/lib/src/cronet_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/cronet_http/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit f953aec

Please sign in to comment.