- Throw
ClientException
ifCronetClient.send
runs out of Java heap while allocating memory for the request body. - Upgrade
package:jni
andpackage:jnigen
to 0.12.0.
- Upgrade
package:jni
to 0.10.1 andpackage:jnigen
to 0.10.0 to fix method calling bugs and a debug mode issue.
- Add relevant rules with the ProGuard to avoid runtime exceptions.
- Upgrade
package:jnigen
to 0.9.2 to fix a bug for 32-bit architectures.
- Add integration to the DevTools Network View.
- Upgrade
package:jni
to 0.9.2 to fix the build error in the latest versions of Flutter. - Upgrade
package:jnigen
to 0.9.1 and regenerate the bindings to improve the efficiency of function calls.
- Support the Cronet embedding dependency with
--dart-define=cronetHttpNoPlay=true
. - Fix a bug in the documentation where
isOwned
is used rather thancloseEngine
. - Upgrade
package:jni
to 0.7.3 to fix a SIGSEGV caused by a null pointer dereference.
- Make it possible to construct
CronetClient
with custom aCronetEngine
while still allowingCronetClient
to close theCronetEngine
.
- Use
package:http_image_provider
in the example application. - Support Android API 21+.
- Support
BaseResponseWithUrl
.
- No functional changes.
- Require
package:jni >= 0.7.2
to remove a potential buffer overflow. - Fix a bug where incorrect HTTP request methods were sent.
-
Require
package:jni >= 0.7.1
so that depending onpackage:cronet_http
does not break macOS builds. -
Fix obsolete
CronetClient()
constructor usage.
- Use more efficient operations when copying bytes between Java and Dart.
- Switch to using
package:jnigen
for bindings to Cronet - Support for running in background isolates.
- Breaking Change:
CronetEngine.build()
returns aCronetEngine
rather than aFuture<CronetEngine>
andCronetClient.fromCronetEngineFuture()
has been removed because it is no longer necessary.
- Require Dart 3.0
- Throw
ClientException
when the'Content-Length'
header is invalid.
- Require Dart 2.19
- Support
package:http
1.0.0
- Restructure
package:cronet_http
to offer apackage:cronet_http/cronet_http.dart
import.
- Fix a NPE that occurs when an error occurs before a response is received.
CronetClient
throws an exception ifsend
is called afterclose
.
- Add a CronetClient that accepts a
Future<CronetEngine>
. - Modify the example application to create a
CronetClient
using aFuture<CronetEngine>
.
- Fix a bug where the example would not use the configured
package:http
Client
for Books API calls in some circumstances. - Fix a bug where the images in the example would be loaded using
dart:io
HttpClient
.
- Set
StreamedResponse.reasonPhrase
andStreamedResponse.request
.
- Initial development release.