Init analysis only release mode

This commit is contained in:
LollipopKit
2021-11-02 15:48:04 +08:00
parent ad05b296f6
commit 3105552eae

View File

@@ -127,6 +127,8 @@ class _MyHomePageState extends State<MyHomePage>
await GetIt.I.allReady(); await GetIt.I.allReady();
await locator<ServerProvider>().loadLocalData(); await locator<ServerProvider>().loadLocalData();
await doUpdate(context); await doUpdate(context);
await Analysis.init(BuildMode.isDebug); if (BuildMode.isRelease) {
await Analysis.init(false);
}
} }
} }