Skip to content

Commit 24deb02

Browse files
authored
[webview_flutter] updates build files to use JVM 17 (#10129)
part of [#176027](flutter/flutter#176027). All dart code changes were formatter changes. ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent 23a950e commit 24deb02

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

packages/webview_flutter/webview_flutter_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 4.10.3
2+
3+
* Updates Java compatibility version to 17.
4+
15
## 4.10.2
26

37
* Updates minimum supported SDK version to Flutter 3.35.

packages/webview_flutter/webview_flutter_android/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ android {
2929
compileSdk = flutter.compileSdkVersion
3030

3131
compileOptions {
32-
sourceCompatibility = JavaVersion.VERSION_11
33-
targetCompatibility = JavaVersion.VERSION_11
32+
sourceCompatibility = JavaVersion.VERSION_17
33+
targetCompatibility = JavaVersion.VERSION_17
3434
}
3535

3636
kotlinOptions {
37-
jvmTarget = '11'
37+
jvmTarget = JavaVersion.VERSION_17.toString()
3838
}
3939

4040
defaultConfig {

packages/webview_flutter/webview_flutter_android/example/android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ android {
3838
}
3939

4040
compileOptions {
41-
sourceCompatibility = JavaVersion.VERSION_11
42-
targetCompatibility = JavaVersion.VERSION_11
41+
sourceCompatibility = JavaVersion.VERSION_17
42+
targetCompatibility = JavaVersion.VERSION_17
4343
}
4444

4545
kotlinOptions {
46-
jvmTarget = '11'
46+
jvmTarget = '17'
4747
}
4848

4949
buildTypes {

packages/webview_flutter/webview_flutter_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: webview_flutter_android
22
description: A Flutter plugin that provides a WebView widget on Android.
33
repository: https://github.com/flutter/packages/tree/main/packages/webview_flutter/webview_flutter_android
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview%22
5-
version: 4.10.2
5+
version: 4.10.3
66

77
environment:
88
sdk: ^3.9.0

0 commit comments

Comments
 (0)