Skip to content

Commit 21b22f0

Browse files
committed
Bump compileSDK to 35 and upgrade JVM toolchain
- compileSdkVersion 34 -> 35 - Kotlin 1.9.22 -> 2.0.21 - Java 11 -> 17 - DesugarJDK 1.1.5 -> 2.1.5 - AndroidX.window 1.0.0 -> 1.3.0
1 parent d0ac3a4 commit 21b22f0

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

android/app/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ if (keystorePropertiesFile.exists()) {
2929
}
3030

3131
android {
32-
compileSdkVersion 34
32+
compileSdkVersion 35
3333

3434
compileOptions {
3535
// Flag to enable support for the new language APIs
3636
coreLibraryDesugaringEnabled true
37-
// Sets Java compatibility to Java 11
38-
sourceCompatibility JavaVersion.VERSION_11
39-
targetCompatibility JavaVersion.VERSION_11
37+
// Sets Java compatibility to Java 17
38+
sourceCompatibility JavaVersion.VERSION_17
39+
targetCompatibility JavaVersion.VERSION_17
4040
}
4141

4242
kotlinOptions {
43-
jvmTarget = '11'
43+
jvmTarget = '17'
4444
}
4545

4646
sourceSets {
@@ -78,6 +78,6 @@ flutter {
7878
}
7979

8080
dependencies {
81-
implementation "androidx.window:window:1.0.0"
82-
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
81+
implementation "androidx.window:window:1.3.0"
82+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
8383
}

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.9.1' apply false
22-
id "org.jetbrains.kotlin.android" version "1.9.22" apply false
22+
id "org.jetbrains.kotlin.android" version "2.0.21" apply false
2323
}
2424

2525
include ":app"

0 commit comments

Comments
 (0)