fix: 040 bugs (#4285)

* test: add tests

* chore: set maximum log files

* fix: import row document

* chore: bump client api

* chore: fix analyzer

* chore: fix flutter unit test
This commit is contained in:
Nathan.fooo
2024-01-03 11:41:29 +08:00
committed by GitHub
parent eef5c2bf66
commit 7937fd1f3a
35 changed files with 537 additions and 280 deletions

View File

@ -47,6 +47,7 @@ run_task = { name = [
#
[tasks.sdk-dev-build]
dependencies = ["set-app-version"]
private = true
script = [
"""
@ -58,6 +59,7 @@ script = [
script_runner = "@shell"
[tasks.sdk-dev-build.mac]
dependencies = ["set-app-version"]
private = true
script = [
"""
@ -69,6 +71,7 @@ script = [
script_runner = "@shell"
[tasks.sdk-dev-build.windows]
dependencies = ["set-app-version"]
private = true
script = [
"""
@ -93,6 +96,7 @@ run_task = { name = [
#
[tasks.sdk-release-build]
dependencies = ["set-app-version"]
script = [
"""
cd rust-lib/
@ -103,6 +107,7 @@ script = [
script_runner = "@shell"
[tasks.sdk-release-build.mac]
dependencies = ["set-app-version"]
script = [
"""
cd rust-lib/
@ -172,3 +177,13 @@ script = [
""",
]
script_runner = "@duckscript"
[tasks.set-app-version]
script = ["""
if is_empty ${APP_VERSION}
APP_VERSION = set ${APPFLOWY_VERSION}
set_env APP_VERSION ${APPFLOWY_VERSION}
end
echo APP_VERSION: ${APP_VERSION}
"""]
script_runner = "@duckscript"

View File

@ -7,7 +7,6 @@ linux_alias = "appflowy-linux"
dependencies = ["appflowy-core-release"]
run_task = { name = [
"code_generation",
"set-app-version",
"flutter-build",
"copy-to-product",
] }
@ -16,7 +15,6 @@ script_runner = "@shell"
[tasks.appflowy-macos-universal]
run_task = { name = [
"code_generation",
"set-app-version",
"flutter-build",
"copy-to-product",
] }
@ -71,7 +69,6 @@ linux_alias = "appflowy-linux-dev"
dependencies = ["appflowy-core-dev-ios"]
run_task = { name = [
"code_generation",
"set-app-version",
"flutter-build-ios",
] }
script_runner = "@shell"
@ -80,7 +77,6 @@ script_runner = "@shell"
dependencies = ["appflowy-core-dev-android"]
run_task = { name = [
"code_generation",
"set-app-version",
"flutter-build-android",
] }
script_runner = "@shell"
@ -89,7 +85,6 @@ script_runner = "@shell"
dependencies = ["appflowy-core-dev-android"]
run_task = { name = [
"code_generation",
"set-app-version",
"flutter-build-android",
] }
script_runner = "@shell"
@ -98,7 +93,6 @@ script_runner = "@shell"
dependencies = ["appflowy-core-dev"]
run_task = { name = [
"code_generation",
"set-app-version",
"flutter-build",
"copy-to-product",
] }
@ -108,7 +102,6 @@ script_runner = "@shell"
dependencies = ["appflowy-core-dev"]
run_task = { name = [
"code_generation",
"set-app-version",
"flutter-build",
"copy-to-product",
] }
@ -117,7 +110,6 @@ run_task = { name = [
dependencies = ["appflowy-core-dev"]
run_task = { name = [
"code_generation",
"set-app-version",
"flutter-build",
"copy-to-product",
] }
@ -216,15 +208,6 @@ script = [
]
script_runner = "@duckscript"
[tasks.set-app-version]
script = ["""
if is_empty ${APP_VERSION}
APP_VERSION = set ${CURRENT_APP_VERSION}
set_env APP_VERSION ${CURRENT_APP_VERSION}
end
echo APP_VERSION: ${APP_VERSION}
"""]
script_runner = "@duckscript"
# The following tasks will create an archive that will be used on the GitHub Releases section
# The archives are created using different compression programs depending on the target OS

View File

@ -12,7 +12,7 @@ condition = { env_set = [
[tasks.appflowy-core-dev-ios]
category = "Build"
dependencies = ["env_check"]
dependencies = ["env_check", "set-app-version"]
run_task = { name = [
"setup-crate-type",
"sdk-build-ios",
@ -21,6 +21,7 @@ run_task = { name = [
] }
[tasks.sdk-build-ios]
dependencies = ["set-app-version"]
private = true
script = [
"""
@ -40,7 +41,7 @@ script_runner = "@shell"
[tasks.appflowy-core-dev-android]
category = "Build"
dependencies = ["env_check"]
dependencies = ["env_check", "set-app-version"]
run_task = { name = [
"setup-crate-type",
"sdk-build-android",
@ -49,6 +50,7 @@ run_task = { name = [
] }
[tasks.sdk-build-android]
dependencies = ["set-app-version"]
private = true
script = [
"""