Skip to content

Commit 87d7acb

Browse files
committed
fix: upgrade build
1 parent 7600edf commit 87d7acb

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

android/app/build.gradle

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,21 @@ if (flutterVersionName == null) {
3535
}
3636

3737
android {
38-
compileSdkVersion 34
38+
compileSdkVersion 35
3939

4040
sourceSets {
4141
main.java.srcDirs += 'src/main/kotlin'
4242
}
4343

44+
compileOptions {
45+
sourceCompatibility JavaVersion.VERSION_17
46+
targetCompatibility JavaVersion.VERSION_17
47+
}
48+
49+
kotlinOptions {
50+
jvmTarget = '17'
51+
}
52+
4453
defaultConfig {
4554
applicationId "com.rtirl.chat"
4655
minSdkVersion 23
@@ -72,7 +81,9 @@ flutter {
7281
}
7382

7483
dependencies {
75-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.21"
84+
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.0.0"
7685
implementation "androidx.media:media:1.4.1"
7786
implementation 'androidx.multidex:multidex:2.0.1'
87+
implementation 'com.google.android.play:app-update:2.1.0'
88+
implementation 'com.google.android.play:feature-delivery:2.1.0'
7889
}

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip

android/settings.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ pluginManagement {
2323
}
2424
}
2525
dependencies {
26-
classpath("com.android.tools:r8:3.3.78")
26+
classpath("com.android.tools:r8:8.3.38")
2727
}
2828
}
2929
}
3030

3131
plugins {
3232
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
33-
id "com.android.application" version "7.3.0" apply false
34-
id "org.jetbrains.kotlin.android" version "1.9.21" apply false
33+
id "com.android.application" version "8.2.1" apply false
34+
id "org.jetbrains.kotlin.android" version "2.0.0" apply false
3535
id "com.google.gms.google-services" version "4.4.0" apply false
3636
id "com.google.firebase.crashlytics" version "2.9.9" apply false
3737
}

0 commit comments

Comments
 (0)