Skip to content

Commit d57b61b

Browse files
authored
fix: mobile ci (#4232)
1 parent 43a3a1e commit d57b61b

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.github/workflows/mobile_ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ jobs:
7373
ndk-version: "r24"
7474
add-to-path: true
7575

76+
- uses: gradle/gradle-build-action@v2
77+
with:
78+
gradle-version: 7.6.3
79+
7680
- uses: Swatinem/rust-cache@v2
7781
with:
7882
prefix-key: ${{ matrix.os }}
@@ -110,4 +114,4 @@ jobs:
110114
env:
111115
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
112116
run: |
113-
cargo make --profile development-android appflowy-android-dev
117+
cargo make --profile development-android appflowy-android-dev-ci

frontend/appflowy_flutter/android/app/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ android {
7474
}
7575
buildTypes {
7676
release {
77-
signingConfig signingConfigs.release
77+
// use release instead when publishing the application to google play.
78+
// signingConfig signingConfigs.release
79+
signingConfig signingConfigs.debug
7880
}
7981
}
8082

frontend/scripts/makefile/flutter.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ run_task = { name = [
8585
] }
8686
script_runner = "@shell"
8787

88+
[tasks.appflowy-android-dev-ci]
89+
dependencies = ["appflowy-core-dev-android"]
90+
run_task = { name = [
91+
"code_generation",
92+
"set-app-version",
93+
"flutter-build-android",
94+
] }
95+
script_runner = "@shell"
96+
8897
[tasks.appflowy-macos-dev]
8998
dependencies = ["appflowy-core-dev"]
9099
run_task = { name = [
@@ -270,6 +279,14 @@ script = ["""
270279
"""]
271280
script_runner = "@shell"
272281

282+
[tasks.flutter-build-android-ci]
283+
script = ["""
284+
cd appflowy_flutter/
285+
flutter pub get
286+
flutter build apk --debug
287+
"""]
288+
script_runner = "@shell"
289+
273290
[tasks.flutter-build.windows]
274291
script = [
275292
"""

0 commit comments

Comments
 (0)