Skip to content

Commit

Permalink
[cronet_http] Apply relevant rules with the ProGuard (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 authored May 24, 2024
1 parent 0937562 commit a2e241b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
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.3.1-wip

* Add relevant rules with the ProGuard to avoid runtime exceptions.

## 1.3.0

* Add integration to the
Expand Down
3 changes: 3 additions & 0 deletions pkgs/cronet_http/android/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
-keep class io.flutter.plugins.cronet_http.** { *; }
-keep class java.net.URL { *; }
-keep class java.util.concurrent.Executors { *; }
-keep class org.chromium.net.** { *; }
1 change: 1 addition & 0 deletions pkgs/cronet_http/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@ dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
// ""com.google.android.gms:play-services-cronet" is only present so that
// `jnigen` will work. Applications should not include this line.
// The version should be synced with `pkgs/cronet_http/android/build.gradle`.
implementation "com.google.android.gms:play-services-cronet:18.0.1"
}
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.3.0
version: 1.3.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

0 comments on commit a2e241b

Please sign in to comment.