feat:参照研听的基础工程

This commit is contained in:
jingyun
2026-06-18 15:02:28 +08:00
commit 364fc837b3
367 changed files with 16495 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import 'dart:io' show Platform;
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/widgets.dart';
import '../common/services/device_header_service.dart';
import '../common/storage/storage_service.dart';
import 'app.dart';
Future<Widget> bootstrap() async {
WidgetsFlutterBinding.ensureInitialized();
await StorageService.instance;
if (!kIsWeb) {
if (Platform.isAndroid) {
// Before consent this only initializes app version and channel. The
// service resumes device identity initialization after consent.
await DeviceHeaderService.to.ensureInitialized();
} else {
await DeviceHeaderService.to.ensureInitialized();
}
}
// if (!kIsWeb) {
// await ShorebirdService.instance.initCurrentPatch();
// ShorebirdService.instance.checkForUpdateInBackground();
// }
return const JinzhiApp();
}