registerDartCore function

Future<void> registerDartCore()

Implementation

Future<void> registerDartCore() async {
  final dir = await getApplicationDocumentsDirectory();
  Hive.init(dir.path);
  Hive.registerAdapter(LoginAuthAdapter());
  await Hive.openBox<LoginResponse>('auth');
  final settings = Settings();
  await settings.loadSettings();
}