fix:第一轮跑

This commit is contained in:
jingyun committed 2026-08-24 19:07:31 +08:00
1 parent e834ec7586
commit 33235f450b
56 files changed
+4357 -210

No files matched your search

+7 -4
View File
@@ -4,6 +4,8 @@ import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/widgets.dart';
import '../common/services/device_header_service.dart';
import '../common/config/shorebird_service.dart';
import '../common/config/umeng_config.dart';
import '../common/storage/secure_identity_storage.dart';
import '../common/storage/storage_service.dart';
import '../common/widgets/easy_refresh_localization.dart';
@@ -12,6 +14,7 @@ import 'app.dart';
Future<Widget> bootstrap() async {
WidgetsFlutterBinding.ensureInitialized();
configureEasyRefreshChineseLocalization();
await UmengConfig.load();
await StorageService.instance;
await SecureIdentityStorage(
StorageService.to.preferences,
@@ -25,9 +28,9 @@ Future<Widget> bootstrap() async {
await DeviceHeaderService.to.ensureInitialized();
}
}
// if (!kIsWeb) {
// await ShorebirdService.instance.initCurrentPatch();
// ShorebirdService.instance.checkForUpdateInBackground();
// }
if (!kIsWeb) {
await ShorebirdService.instance.initCurrentPatch();
ShorebirdService.instance.checkForUpdateInBackground();
}
return const JinzhiApp();
}