Skip to content

Commit ffd3398

Browse files
committed
[chore] Bump kotlin_version, gradle for Android 15
1 parent 95882c5 commit ffd3398

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

android/build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ group 'com.pravera.flutter_foreground_task'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
5-
ext.kotlin_version = '1.7.10'
5+
ext.kotlin_version = '1.9.10'
66
repositories {
77
google()
88
mavenCentral()
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:7.4.2'
12+
classpath 'com.android.tools.build:gradle:8.6.0'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
1515
}
1616

17-
allprojects {
17+
rootProject.allprojects {
1818
repositories {
1919
google()
2020
mavenCentral()
@@ -33,12 +33,12 @@ android {
3333
compileSdk 35
3434

3535
compileOptions {
36-
sourceCompatibility JavaVersion.VERSION_1_8
37-
targetCompatibility JavaVersion.VERSION_1_8
36+
sourceCompatibility JavaVersion.VERSION_11
37+
targetCompatibility JavaVersion.VERSION_11
3838
}
3939

4040
kotlinOptions {
41-
jvmTarget = '1.8'
41+
jvmTarget = JavaVersion.VERSION_11
4242
}
4343

4444
sourceSets {
@@ -51,9 +51,9 @@ android {
5151
}
5252

5353
dependencies {
54-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
55-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
56-
implementation 'androidx.core:core-ktx:1.13.0'
54+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0'
55+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0'
56+
implementation 'androidx.core:core-ktx:1.15.0'
5757

5858
testImplementation 'org.jetbrains.kotlin:kotlin-test'
5959
testImplementation 'org.mockito:mockito-core:5.0.0'

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip

example/android/app/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ if (flutterVersionName == null) {
2525
android {
2626
namespace "com.pravera.flutter_foreground_task_example"
2727

28-
compileSdk 34
28+
compileSdk 35
2929

3030
compileOptions {
31-
sourceCompatibility JavaVersion.VERSION_1_8
32-
targetCompatibility JavaVersion.VERSION_1_8
31+
sourceCompatibility JavaVersion.VERSION_11
32+
targetCompatibility JavaVersion.VERSION_11
3333
}
3434

3535
kotlinOptions {
36-
jvmTarget = '1.8'
36+
jvmTarget = JavaVersion.VERSION_11
3737
}
3838

3939
sourceSets {
@@ -44,7 +44,7 @@ android {
4444
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4545
applicationId "com.pravera.flutter_foreground_task_example"
4646
minSdkVersion 21
47-
targetSdkVersion 34
47+
targetSdkVersion 35
4848
versionCode flutterVersionCode.toInteger()
4949
versionName flutterVersionName
5050
}

example/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.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip

example/android/settings.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ pluginManagement {
1919

2020
plugins {
2121
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
22-
id "com.android.application" version "7.3.0" apply false
23-
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
22+
id "com.android.application" version "8.6.0" apply false
23+
id "org.jetbrains.kotlin.android" version "1.9.10" apply false
2424
}
2525

2626
include ":app"

0 commit comments

Comments
 (0)