mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
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:
@ -7,6 +7,7 @@ import 'package:appflowy_backend/appflowy_backend.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get_it/get_it.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
|
||||
import 'deps_resolver.dart';
|
||||
import 'entry_point.dart';
|
||||
@ -83,6 +84,12 @@ class FlowyRunner {
|
||||
rustEnvs: rustEnvsBuilder?.call() ?? {},
|
||||
);
|
||||
|
||||
if (!mode.isUnitTest) {
|
||||
// Unit test can't use the package_info_plus plugin
|
||||
config.rustEnvs["APP_VERSION"] =
|
||||
await PackageInfo.fromPlatform().then((value) => value.version);
|
||||
}
|
||||
|
||||
// Specify the env
|
||||
await initGetIt(getIt, mode, f, config);
|
||||
await didInitGetItCallback?.call();
|
||||
|
Reference in New Issue
Block a user