Explorar o código

[new]去除bugly

zk hai 8 meses
pai
achega
8a97204498
Modificáronse 3 ficheiros con 17 adicións e 35 borrados
  1. 17 24
      lib/main.dart
  2. 0 8
      pubspec.lock
  3. 0 3
      pubspec.yaml

+ 17 - 24
lib/main.dart

@@ -23,24 +23,21 @@ import 'data/const/constants.dart';
 import 'di/get_it.dart';
 import 'package:pull_to_refresh/pull_to_refresh.dart';
 
-void main() {
-  FlutterBugly.postCatchedException(() async {
-    WidgetsFlutterBinding.ensureInitialized();
+void main() async {
+  WidgetsFlutterBinding.ensureInitialized();
 
-    //必要初始化
-    await initRequired();
+  //必要初始化
+  await initRequired();
 
-    //非隐私相关
-    initCommon();
+  //非隐私相关
+  initCommon();
 
-    runApp(const MyApp());
+  runApp(const MyApp());
 
-    //檢查地址
-    checkEnv();
-  });
+  //檢查地址
+  checkEnv();
 }
 
-
 Future<void> initRequired() async {
   //Log
   AtmobLog.setLogLevel(
@@ -58,8 +55,6 @@ void initCommon() {
   smartConfig();
 }
 
-
-
 void smartConfig() {
   SmartDialog.config.custom =
       SmartConfigCustom(animationType: SmartAnimationType.fade);
@@ -71,8 +66,6 @@ void checkEnv() {
   }
 }
 
-
-
 class MyApp extends StatelessWidget {
   const MyApp({super.key});
 
@@ -162,14 +155,14 @@ class AppCommonConfig {
 
   // 本地化配置
   static const localizations = (
-  delegates: [
-    GlobalMaterialLocalizations.delegate,
-    GlobalWidgetsLocalizations.delegate,
-    GlobalCupertinoLocalizations.delegate,
-  ],
-  supportedLocales: [Locale('en', 'US')],
-  locale: Locale('en', 'US'),
-  fallbackLocale: Locale('en', 'US'),
+    delegates: [
+      GlobalMaterialLocalizations.delegate,
+      GlobalWidgetsLocalizations.delegate,
+      GlobalCupertinoLocalizations.delegate,
+    ],
+    supportedLocales: [Locale('en', 'US')],
+    locale: Locale('en', 'US'),
+    fallbackLocale: Locale('en', 'US'),
   );
 
   // 多语言配置

+ 0 - 8
pubspec.lock

@@ -299,14 +299,6 @@ packages:
     description: flutter
     source: sdk
     version: "0.0.0"
-  flutter_bugly:
-    dependency: "direct main"
-    description:
-      name: flutter_bugly
-      sha256: e5e0b64a19a1482fe37fda905ed518513f73ceef8da4de7de25719efd1a3682f
-      url: "https://pub.flutter-io.cn"
-    source: hosted
-    version: "1.1.0"
   flutter_gen_core:
     dependency: transitive
     description:

+ 0 - 3
pubspec.yaml

@@ -69,9 +69,6 @@ dependencies:
   #依赖注入
   injectable: 2.5.0
 
-  #bugly
-  flutter_bugly: 1.1.0
-
   #webview
   flutter_inappwebview: ^6.1.5