Skip to content

Commit 2c64777

Browse files
committed
update android build
1 parent e53f983 commit 2c64777

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

example/android/app/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ android {
3535

3636
defaultConfig {
3737
applicationId "dev.fluttercommunity.workmanager.example"
38-
compileSdk 34
39-
minSdkVersion 19
40-
targetSdkVersion 34
38+
compileSdk 35
39+
minSdkVersion flutter.minSdkVersion
40+
targetSdkVersion 35
4141
versionCode flutterVersionCode.toInteger()
4242
versionName flutterVersionName
4343
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -52,13 +52,13 @@ android {
5252
}
5353

5454
compileOptions {
55-
sourceCompatibility JavaVersion.VERSION_1_8
56-
targetCompatibility JavaVersion.VERSION_1_8
55+
sourceCompatibility JavaVersion.VERSION_17
56+
targetCompatibility JavaVersion.VERSION_17
5757
}
5858

5959
kotlinOptions {
6060
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
61-
kotlinOptions.jvmTarget = "1.8"
61+
kotlinOptions.jvmTarget = "17"
6262
}
6363
}
6464

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id "com.github.ben-manes.versions" version "0.41.0"
2+
id "com.github.ben-manes.versions" version "0.52.0"
33
}
44

55
allprojects {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Thu Jul 18 19:59:15 CEST 2019
1+
#Fri May 30 01:37:19 JST 2025
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip

example/android/settings.gradle

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

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "8.1.4" apply false
22-
id "org.jetbrains.kotlin.android" version "1.9.23" apply false
21+
id "com.android.application" version '8.10.1' apply false
22+
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
2323
}
2424

2525
include ":app"

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Demonstrates how to use the workmanager plugin.
33
publish_to: 'none'
44

55
environment:
6-
sdk: ">=2.18.0 <4.0.0"
6+
sdk: '>=3.1.2 <4.0.0'
77

88
dependencies:
99
path_provider:

0 commit comments

Comments
 (0)