Skip to content

Commit 88161e3

Browse files
authored
fix: Update ci config (#606)
* update ci * update android build
1 parent 64f36e9 commit 88161e3

File tree

6 files changed

+22
-16
lines changed

6 files changed

+22
-16
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Build iOS App
3131
run: cd example && flutter build ios --debug --no-codesign
3232
- name: Run native iOS tests
33-
run: cd example/ios && xcodebuild -workspace Runner.xcworkspace -scheme Runner -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12,OS=16.2' test
33+
run: cd example/ios && xcodebuild -workspace Runner.xcworkspace -scheme Runner -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4' test
3434

3535
native_android_tests:
3636
runs-on: macos-latest
@@ -51,7 +51,7 @@ jobs:
5151
strategy:
5252
matrix:
5353
device:
54-
- "iPhone 12 Pro"
54+
- "iPhone 15 Pro"
5555
fail-fast: false
5656
runs-on: macos-latest
5757
steps:
@@ -68,7 +68,7 @@ jobs:
6868

6969

7070
drive_android:
71-
runs-on: macos-latest
71+
runs-on: ubuntu-latest
7272
#creates a build matrix for your jobs
7373
strategy:
7474
#set of different configurations of the virtual environment.
@@ -78,8 +78,14 @@ jobs:
7878
target: [default]
7979
steps:
8080
- uses: actions/checkout@v4
81-
- uses: actions/setup-java@v1
81+
- name: Enable KVM
82+
run: |
83+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
84+
sudo udevadm control --reload-rules
85+
sudo udevadm trigger --name-match=kvm
86+
- uses: actions/setup-java@v4
8287
with:
88+
distribution: 'temurin'
8389
java-version: 17
8490
- uses: subosito/flutter-action@v2
8591
with:

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)