mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-01-14 22:29:32 +00:00
chore: run dart format
Some checks are pending
Flutter CI & Release / Test (push) Waiting to run
Flutter CI & Release / Build Android APKs (push) Blocked by required conditions
Flutter CI & Release / build_linux (push) Blocked by required conditions
Flutter CI & Release / Create GitHub Release (push) Blocked by required conditions
Some checks are pending
Flutter CI & Release / Test (push) Waiting to run
Flutter CI & Release / Build Android APKs (push) Blocked by required conditions
Flutter CI & Release / build_linux (push) Blocked by required conditions
Flutter CI & Release / Create GitHub Release (push) Blocked by required conditions
This commit is contained in:
parent
a520136e01
commit
e23c0b6c5f
84 changed files with 1565 additions and 1945 deletions
|
|
@ -14,14 +14,17 @@ class AvailableHiveBoxes {
|
|||
static final apiSettingsBox = Hive.box<ApiSettings>(name: 'apiSettings');
|
||||
|
||||
/// stores the a list of [AudiobookShelfServer]
|
||||
static final serverBox =
|
||||
Hive.box<AudiobookShelfServer>(name: 'audiobookShelfServer');
|
||||
static final serverBox = Hive.box<AudiobookShelfServer>(
|
||||
name: 'audiobookShelfServer',
|
||||
);
|
||||
|
||||
/// stores the a list of [AuthenticatedUser]
|
||||
static final authenticatedUserBox =
|
||||
Hive.box<AuthenticatedUser>(name: 'authenticatedUser');
|
||||
static final authenticatedUserBox = Hive.box<AuthenticatedUser>(
|
||||
name: 'authenticatedUser',
|
||||
);
|
||||
|
||||
/// stores the a list of [BookSettings]
|
||||
static final individualBookSettingsBox =
|
||||
Hive.box<BookSettings>(name: 'bookSettings');
|
||||
static final individualBookSettingsBox = Hive.box<BookSettings>(
|
||||
name: 'bookSettings',
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,12 +13,7 @@ Future initStorage() async {
|
|||
final dir = await getApplicationDocumentsDirectory();
|
||||
|
||||
// use vaani as the directory for hive
|
||||
final storageDir = Directory(
|
||||
p.join(
|
||||
dir.path,
|
||||
AppMetadata.appNameLowerCase,
|
||||
),
|
||||
);
|
||||
final storageDir = Directory(p.join(dir.path, AppMetadata.appNameLowerCase));
|
||||
await storageDir.create(recursive: true);
|
||||
|
||||
Hive.defaultDirectory = storageDir.path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue