Migrate Hive box To IsolatedHive box
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -22,6 +22,7 @@ import 'package:tmail_ui_user/features/caching/clients/sending_email_hive_cache_
|
||||
import 'package:tmail_ui_user/features/caching/clients/session_hive_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/clients/state_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/clients/token_oidc_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/manager/session_cache_manger.dart';
|
||||
import 'package:tmail_ui_user/features/cleanup/data/local/recent_login_url_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/cleanup/data/local/recent_login_username_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/cleanup/data/local/recent_search_cache_manager.dart';
|
||||
@@ -89,25 +90,29 @@ class LocalBindings extends Bindings {
|
||||
Get.put(SendingEmailHiveCacheClient());
|
||||
Get.put(SendingEmailCacheManager(Get.find<SendingEmailHiveCacheClient>()));
|
||||
Get.put(SessionHiveCacheClient());
|
||||
Get.put(SessionCacheManager(Get.find<SessionHiveCacheClient>()));
|
||||
Get.put(LocalSpamReportManager(Get.find<SharedPreferences>()));
|
||||
Get.put(CachingManager(
|
||||
Get.find<MailboxCacheClient>(),
|
||||
Get.find<StateCacheClient>(),
|
||||
Get.find<EmailCacheClient>(),
|
||||
Get.find<RecentSearchCacheClient>(),
|
||||
Get.find<RecentLoginUrlCacheClient>(),
|
||||
Get.find<RecentLoginUsernameCacheClient>(),
|
||||
Get.find<AccountCacheClient>(),
|
||||
Get.find<FcmCacheClient>(),
|
||||
Get.find<FirebaseRegistrationCacheClient>(),
|
||||
Get.find<MailboxCacheManager>(),
|
||||
Get.find<StateCacheManager>(),
|
||||
Get.find<EmailCacheManager>(),
|
||||
Get.find<RecentSearchCacheManager>(),
|
||||
Get.find<RecentLoginUrlCacheManager>(),
|
||||
Get.find<RecentLoginUsernameCacheManager>(),
|
||||
Get.find<AccountCacheManager>(),
|
||||
Get.find<FCMCacheManager>(),
|
||||
Get.find<HiveCacheVersionClient>(),
|
||||
Get.find<NewEmailHiveCacheClient>(),
|
||||
Get.find<OpenedEmailHiveCacheClient>(),
|
||||
Get.find<NewEmailCacheManager>(),
|
||||
Get.find<OpenedEmailCacheManager>(),
|
||||
Get.find<FileUtils>(),
|
||||
Get.find<SendingEmailCacheManager>(),
|
||||
Get.find<SessionHiveCacheClient>(),
|
||||
Get.find<SessionCacheManager>(),
|
||||
Get.find<LocalSpamReportManager>(),
|
||||
Get.find<KeychainSharingManager>(),
|
||||
Get.find<TokenOidcCacheManager>(),
|
||||
Get.find<OidcConfigurationCacheManager>(),
|
||||
Get.find<EncryptionKeyCacheManager>(),
|
||||
Get.find<AuthenticationInfoCacheManager>(),
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'package:core/data/model/source_type/data_source_type.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:tmail_ui_user/features/base/interactors_bindings.dart';
|
||||
import 'package:tmail_ui_user/features/caching/clients/session_hive_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/manager/session_cache_manger.dart';
|
||||
import 'package:tmail_ui_user/features/home/data/datasource/session_datasource.dart';
|
||||
import 'package:tmail_ui_user/features/home/data/datasource_impl/hive_session_datasource_impl.dart';
|
||||
import 'package:tmail_ui_user/features/home/data/datasource_impl/session_datasource_impl.dart';
|
||||
@@ -25,7 +25,7 @@ class SessionBindings extends InteractorsBindings {
|
||||
Get.find<SessionAPI>(),
|
||||
Get.find<RemoteExceptionThrower>()));
|
||||
Get.put(HiveSessionDataSourceImpl(
|
||||
Get.find<SessionHiveCacheClient>(),
|
||||
Get.find<SessionCacheManager>(),
|
||||
Get.find<CacheExceptionThrower>()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user