more refactors and logs page handling

This commit is contained in:
shenlong-tanwen
2024-10-23 02:30:46 +05:30
parent 8f47645cdb
commit a0afea04d8
90 changed files with 2386 additions and 584 deletions
+3 -3
View File
@@ -6,17 +6,17 @@ import 'package:immich_mobile/utils/log_manager.dart';
// ignore: import_rule_photo_manager
import 'package:photo_manager/photo_manager.dart';
void main() {
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// DI Injection
ServiceLocator.configureServices();
// Init logging
LogManager.I.init();
await LogManager.I.init();
LogManager.setGlobalErrorCallbacks();
// Init localization
LocaleSettings.useDeviceLocale();
// Clear photo_manager cache
PhotoManager.clearFileCache();
await PhotoManager.clearFileCache();
runApp(const ImApp());
}