Skip to content

Commit 7937fd1

Browse files
authored
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
1 parent eef5c2b commit 7937fd1

File tree

35 files changed

+538
-281
lines changed

35 files changed

+538
-281
lines changed

frontend/Makefile.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
2525
CARGO_MAKE_CRATE_FS_NAME = "dart_ffi"
2626
CARGO_MAKE_CRATE_NAME = "dart-ffi"
2727
LIB_NAME = "dart_ffi"
28-
CURRENT_APP_VERSION = "0.4.0"
28+
APPFLOWY_VERSION = "0.4.0"
2929
FLUTTER_DESKTOP_FEATURES = "dart,rev-sqlite"
3030
PRODUCT_NAME = "AppFlowy"
3131
MACOSX_DEPLOYMENT_TARGET = "11.0"

frontend/appflowy_flutter/lib/startup/startup.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import 'package:appflowy_backend/appflowy_backend.dart';
77
import 'package:flutter/foundation.dart';
88
import 'package:flutter/material.dart';
99
import 'package:get_it/get_it.dart';
10+
import 'package:package_info_plus/package_info_plus.dart';
1011

1112
import 'deps_resolver.dart';
1213
import 'entry_point.dart';
@@ -83,6 +84,12 @@ class FlowyRunner {
8384
rustEnvs: rustEnvsBuilder?.call() ?? {},
8485
);
8586

87+
if (!mode.isUnitTest) {
88+
// Unit test can't use the package_info_plus plugin
89+
config.rustEnvs["APP_VERSION"] =
90+
await PackageInfo.fromPlatform().then((value) => value.version);
91+
}
92+
8693
// Specify the env
8794
await initGetIt(getIt, mode, f, config);
8895
await didInitGetItCallback?.call();

0 commit comments

Comments
 (0)