Browse Source

app启动时不再打印设备信息,因为会读取设备序列号,有隐私问题

gjh 1 week ago
parent
commit
31488ff397
1 changed files with 0 additions and 10 deletions
  1. 0 10
      lib/main.dart

+ 0 - 10
lib/main.dart

@@ -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