|
@@ -1,7 +1,4 @@
|
1
|
|
-import 'dart:io';
|
2
|
|
-
|
3
|
1
|
import 'package:bot_toast/bot_toast.dart';
|
4
|
|
-import 'package:device_info_plus/device_info_plus.dart';
|
5
|
2
|
import 'package:eitc_erm_dental_flutter/db_util.dart';
|
6
|
3
|
import 'package:eitc_erm_dental_flutter/funcs.dart';
|
7
|
4
|
import 'package:eitc_erm_dental_flutter/sp_util.dart';
|
|
@@ -45,12 +42,6 @@ Future _initSettings() async {
|
45
|
42
|
await initLog();
|
46
|
43
|
|
47
|
44
|
PackageInfo packageInfo = await PackageInfo.fromPlatform();
|
48
|
|
- BaseDeviceInfo? deviceInfo;
|
49
|
|
- if (Platform.isAndroid) {
|
50
|
|
- deviceInfo = await DeviceInfoPlugin().androidInfo;
|
51
|
|
- } else if (Platform.isIOS) {
|
52
|
|
- deviceInfo = await DeviceInfoPlugin().iosInfo;
|
53
|
|
- }
|
54
|
45
|
logd("""
|
55
|
46
|
====================app启动====================
|
56
|
47
|
appName=${packageInfo.appName}
|
|
@@ -58,7 +49,6 @@ Future _initSettings() async {
|
58
|
49
|
packageName=${packageInfo.packageName}
|
59
|
50
|
version=${packageInfo.version}
|
60
|
51
|
buildNumber=${packageInfo.buildNumber}
|
61
|
|
- deviceInfo=${deviceInfo?.data ?? "none"}
|
62
|
52
|
==============================================
|
63
|
53
|
""");
|
64
|
54
|
|