feat: support building on Android (#3713)

* feat: support building on Android

* chore: add CI for mobile platform
This commit is contained in:
Lucas.Xu
2023-10-19 09:55:23 +08:00
committed by GitHub
parent f60462a853
commit e565d0ee32
22 changed files with 356 additions and 123 deletions

View File

@ -52,7 +52,16 @@ dependencies = ["appflowy-core-dev-ios"]
run_task = { name = [
"code_generation",
"set-app-version",
"flutter-build",
"flutter-build-ios",
] }
script_runner = "@shell"
[tasks.appflowy-android-dev]
dependencies = ["appflowy-core-dev-android"]
run_task = { name = [
"code_generation",
"set-app-version",
"flutter-build-android",
] }
script_runner = "@shell"
@ -187,6 +196,22 @@ script = ["""
"""]
script_runner = "@shell"
[tasks.flutter-build-ios]
script = ["""
cd appflowy_flutter/
flutter pub get
flutter build ipa --verbose
"""]
script_runner = "@shell"
[tasks.flutter-build-android]
script = ["""
cd appflowy_flutter/
flutter pub get
flutter build apk --split-per-abi --verbose
"""]
script_runner = "@shell"
[tasks.flutter-build.windows]
script = ["""
cd appflowy_flutter