initAll static method
Implementation
static Future<bool> initAll({bool force = false}) async {
if (myConfig != null && force == false) return true;
myConfig = HycopConfig(HycopFactory.enterprise, HycopFactory.serverType);
await myConfig!.serverConfig.loadAsset();
if (HycopFactory.serverType == ServerType.supabase) {
final projectURL = myConfig!.serverConfig.dbConnInfo.databaseURL;
// ignore: unused_local_variable
final projectApiKey = myConfig!.serverConfig.dbConnInfo.apiKey;
final projectServiceRoleKey = myConfig!.serverConfig.dbConnInfo.appId;
await Supabase.initialize(
url: projectURL,
anonKey: projectServiceRoleKey,
);
}
await HycopFactory.selectAccount();
await AccountManager.getSession();
//await myConfig!.load
await HycopFactory.selectDatabase();
await AccountManager.getCurrentUserInfo();
await HycopFactory.selectRealTime();
await HycopFactory.selectFunction();
await HycopFactory.selectStorage();
HycopFactory.setBucketId();
return true;
}