From 3105552eae00e98d3d97270047a437d96889385c Mon Sep 17 00:00:00 2001 From: LollipopKit <2036293523@qq.com> Date: Tue, 2 Nov 2021 15:48:04 +0800 Subject: [PATCH] Init analysis only release mode --- lib/view/page/home.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/view/page/home.dart b/lib/view/page/home.dart index 40ff4c51..67e2b7fa 100644 --- a/lib/view/page/home.dart +++ b/lib/view/page/home.dart @@ -127,6 +127,8 @@ class _MyHomePageState extends State await GetIt.I.allReady(); await locator().loadLocalData(); await doUpdate(context); - await Analysis.init(BuildMode.isDebug); + if (BuildMode.isRelease) { + await Analysis.init(false); + } } }