Skip to content

Commit 2d9110e

Browse files
authored
chore(cronet): upgrade to latest cronet (#1916)
* chore(cronet): upgrade to latest cronet * fix(cronet): upgrade Kotlin Gradle Plugin to 2.1.0 to fix compilation with Cronet 18.1.1 * JNI * fix
1 parent c140dc0 commit 2d9110e

6 files changed

Lines changed: 1364 additions & 270 deletions

File tree

pkgs/cronet_http/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
* Add `CronetEngine.startNetLogToFile` and `CronetEngine.stopNetLog`.
44
* Decode Java `CronetException` into Dart equivalents.
5+
* Upgrade to Cronet 18.1.1.
6+
* Upgrade Kotlin Gradle Plugin version to 2.1.0 for compatibility with the
7+
upgraded Cronet dependency.
58

69
## 1.8.0
710

pkgs/cronet_http/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ android {
6565

6666
dependencies {
6767
if (dartDefines.cronetHttpNoPlay == 'true') {
68-
implementation 'org.chromium.net:cronet-embedded:141.7340.3'
68+
implementation 'org.chromium.net:cronet-embedded:143.7445.0'
6969
} else {
70-
implementation "com.google.android.gms:play-services-cronet:18.1.0"
70+
implementation "com.google.android.gms:play-services-cronet:18.1.1"
7171
}
7272
}

pkgs/cronet_http/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pluginManagement {
1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
2121
id "com.android.application" version "8.1.0" apply false
22-
id "org.jetbrains.kotlin.android" version "1.7.21" apply false
22+
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
2323
}
2424

2525
include ":app"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ dependencies {
6969
// ""com.google.android.gms:play-services-cronet" is only present so that
7070
// `jnigen` will work. Applications should not include this line.
7171
// The version should be synced with `pkgs/cronet_http/android/build.gradle`.
72-
implementation "com.google.android.gms:play-services-cronet:18.0.1"
72+
implementation "com.google.android.gms:play-services-cronet:18.1.1"
7373
}

pkgs/cronet_http/example/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pluginManagement {
1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
2121
id "com.android.application" version "8.6.0" apply false
22-
id "org.jetbrains.kotlin.android" version "1.8.10" apply false
22+
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
2323
}
2424

2525
include ":app"

0 commit comments

Comments
 (0)