hive切换hive_ce

This commit is contained in:
rang 2025-12-22 15:04:04 +08:00
parent 3362a254ff
commit 6efa41e035
30 changed files with 1403 additions and 2566 deletions

View file

@ -20,7 +20,7 @@ final _logger = Logger('authenticated_users_provider');
class AuthenticatedUsers extends _$AuthenticatedUsers {
@override
Set<model.AuthenticatedUser> build() {
ref.listenSelf((_, __) {
listenSelf((_, __) {
writeStateToBox();
});
// get the app settings
@ -35,7 +35,7 @@ class AuthenticatedUsers extends _$AuthenticatedUsers {
Set<model.AuthenticatedUser> readFromBoxOrCreate() {
if (_box.isNotEmpty) {
final foundData = _box.getRange(0, _box.length);
final foundData = _box.values.toList();
_logger.fine(
'found users in box: ${foundData.obfuscate()}',
);

View file

@ -7,7 +7,7 @@ part of 'authenticated_users_provider.dart';
// **************************************************************************
String _$authenticatedUsersHash() =>
r'5fdd472f62fc3b73ff8417cdce9f02e86c33d00f';
r'4b839cd69be08044e17e540290143c2a3b870b97';
/// provides with a set of authenticated users
///

View file

@ -188,7 +188,7 @@ final librariesProvider =
);
typedef _$Libraries = AutoDisposeAsyncNotifier<List<Library>>;
String _$libraryItemsHash() => r'847ff8f5c325a786f257c2b98986098a9664cbb5';
String _$libraryItemsHash() => r'2927603eca709f7444a5d2ab5595dedc8596de78';
/// See also [LibraryItems].
@ProviderFor(LibraryItems)

View file

@ -29,7 +29,7 @@ class ServerAlreadyExistsException implements Exception {
class AudiobookShelfServer extends _$AudiobookShelfServer {
@override
Set<model.AudiobookShelfServer> build() {
ref.listenSelf((_, __) {
listenSelf((_, __) {
writeStateToBox();
});
// get the app settings
@ -48,7 +48,7 @@ class AudiobookShelfServer extends _$AudiobookShelfServer {
Set<model.AudiobookShelfServer> readFromBoxOrCreate() {
if (_box.isNotEmpty) {
final foundServers = _box.getRange(0, _box.length);
final foundServers = _box.values.toList();
_logger.info('found servers in box: ${foundServers.obfuscate()}');
return foundServers.nonNulls.toSet();
} else {

View file

@ -7,7 +7,7 @@ part of 'server_provider.dart';
// **************************************************************************
String _$audiobookShelfServerHash() =>
r'31a96b431221965cd586aad670a32ca901539e41';
r'b56be59093e7c7a4df8162fec1bdc9c066887ca2';
/// provides with a set of servers added by the user
///