Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
## 1.6.1-wip

* Fix a bug where cronet would throw `ClassNotFoundException` in debug mode.

## 1.6.0

* Upgrade the `cronet-embedded` dependency to `141.7340` version to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

package io.flutter.plugins.cronet_http

import androidx.annotation.Keep
import org.chromium.net.CronetException
import org.chromium.net.UrlRequest
import org.chromium.net.UrlResponseInfo
Expand All @@ -31,8 +32,10 @@ import java.nio.ByteBuffer
// parameter is nullable as specified in the cronet source code:
// https://source.chromium.org/chromium/chromium/src/+/main:components/cronet/android/api/src/org/chromium/net/UrlRequest.java;l=232

@Keep
class UrlRequestCallbackProxy(val callback: UrlRequestCallbackInterface) : UrlRequest.Callback() {
public interface UrlRequestCallbackInterface {
@Keep
interface UrlRequestCallbackInterface {
fun onRedirectReceived(
request: UrlRequest?,
info: UrlResponseInfo?,
Expand Down
2 changes: 1 addition & 1 deletion pkgs/cronet_http/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: cronet_http
version: 1.6.0
version: 1.6.1-wip
description: >-
An Android Flutter plugin that provides access to the Cronet HTTP client.
repository: https://github.com/dart-lang/http/tree/master/pkgs/cronet_http
Expand Down