Fix init order

This commit is contained in:
Ming Ming 2024-08-02 01:39:24 +08:00
parent 60fd4bcbfd
commit da8af5db07

View file

@ -71,10 +71,10 @@ Future<void> init(InitIsolateType isolateType) async {
await _initPref();
await _initAccountPrefs();
_initEquatable();
await initHttp(k.versionStr);
if (features.isSupportSelfSignedCert) {
await _initSelfSignedCertManager();
}
await initHttp(k.versionStr);
await _initDiContainer(isolateType);
_initVisibilityDetector();
initGpsMap();