Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: mobile ci (#4232)

Lucas.Xud57b61b21357
diff --git a/.github/workflows/mobile_ci.yaml b/.github/workflows/mobile_ci.yaml
index 290d01a21c..7ab8a139ba 100644
--- a/.github/workflows/mobile_ci.yaml
+++ b/.github/workflows/mobile_ci.yaml
@@ -73,6 +73,10 @@ jobs:
ndk-version: "r24"
add-to-path: true
+ - uses: gradle/gradle-build-action@v2
+ with:
+ gradle-version: 7.6.3
+
- uses: Swatinem/rust-cache@v2
with:
prefix-key: ${{ matrix.os }}
@@ -110,4 +114,4 @@ jobs:
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
run: |
- cargo make --profile development-android appflowy-android-dev
+ cargo make --profile development-android appflowy-android-dev-ci
diff --git a/frontend/appflowy_flutter/android/app/build.gradle b/frontend/appflowy_flutter/android/app/build.gradle
index 70267a28f4..43c44d67d9 100644
--- a/frontend/appflowy_flutter/android/app/build.gradle
+++ b/frontend/appflowy_flutter/android/app/build.gradle
@@ -74,7 +74,9 @@ android {
}
buildTypes {
release {
- signingConfig signingConfigs.release
+ // use release instead when publishing the application to google play.
+ // signingConfig signingConfigs.release
+ signingConfig signingConfigs.debug
}
}
diff --git a/frontend/scripts/makefile/flutter.toml b/frontend/scripts/makefile/flutter.toml
index cb8cffbd1d..7906374903 100644
--- a/frontend/scripts/makefile/flutter.toml
+++ b/frontend/scripts/makefile/flutter.toml
@@ -85,6 +85,15 @@ run_task = { name = [
] }
script_runner = "@shell"
+[tasks.appflowy-android-dev-ci]
+dependencies = ["appflowy-core-dev-android"]
+run_task = { name = [
+ "code_generation",
+ "set-app-version",
+ "flutter-build-android",
+] }
+script_runner = "@shell"
+
[tasks.appflowy-macos-dev]
dependencies = ["appflowy-core-dev"]
run_task = { name = [
@@ -270,6 +279,14 @@ script = ["""
"""]
script_runner = "@shell"
+[tasks.flutter-build-android-ci]
+script = ["""
+ cd appflowy_flutter/
+ flutter pub get
+ flutter build apk --debug
+ """]
+script_runner = "@shell"
+
[tasks.flutter-build.windows]
script = [
"""