Skip to content

Commit a2e241b

Browse files
authored
[cronet_http] Apply relevant rules with the ProGuard (#1204)
1 parent 0937562 commit a2e241b

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
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+
## 1.3.1-wip
2+
3+
* Add relevant rules with the ProGuard to avoid runtime exceptions.
4+
15
## 1.3.0
26

37
* Add integration to the
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
-keep class io.flutter.plugins.cronet_http.** { *; }
2+
-keep class java.net.URL { *; }
3+
-keep class java.util.concurrent.Executors { *; }
4+
-keep class org.chromium.net.** { *; }

pkgs/cronet_http/example/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,6 @@ dependencies {
7373
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
7474
// ""com.google.android.gms:play-services-cronet" is only present so that
7575
// `jnigen` will work. Applications should not include this line.
76+
// The version should be synced with `pkgs/cronet_http/android/build.gradle`.
7677
implementation "com.google.android.gms:play-services-cronet:18.0.1"
7778
}

pkgs/cronet_http/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: cronet_http
2-
version: 1.3.0
2+
version: 1.3.1-wip
33
description: >-
44
An Android Flutter plugin that provides access to the Cronet HTTP client.
55
repository: https://github.com/dart-lang/http/tree/master/pkgs/cronet_http

0 commit comments

Comments
 (0)