TF-886 Store encryptionKey in Hive database

This commit is contained in:
dab246
2022-09-07 10:35:12 +07:00
committed by Dat H. Pham
parent f1e512148d
commit 6018cd383a
11 changed files with 209 additions and 21 deletions
+6 -1
View File
@@ -6,6 +6,7 @@ import 'package:tmail_ui_user/features/caching/account_cache_client.dart';
import 'package:tmail_ui_user/features/caching/authentication_info_cache_client.dart';
import 'package:tmail_ui_user/features/caching/caching_manager.dart';
import 'package:tmail_ui_user/features/caching/email_cache_client.dart';
import 'package:tmail_ui_user/features/caching/encryption_key_cache_client.dart';
import 'package:tmail_ui_user/features/caching/mailbox_cache_client.dart';
import 'package:tmail_ui_user/features/caching/recent_search_cache_client.dart';
import 'package:tmail_ui_user/features/caching/state_cache_client.dart';
@@ -13,6 +14,7 @@ import 'package:tmail_ui_user/features/caching/token_oidc_cache_client.dart';
import 'package:tmail_ui_user/features/cleanup/data/local/recent_search_cache_manager.dart';
import 'package:tmail_ui_user/features/login/data/local/account_cache_manager.dart';
import 'package:tmail_ui_user/features/login/data/local/authentication_info_cache_manager.dart';
import 'package:tmail_ui_user/features/login/data/local/encryption_key_cache_manager.dart';
import 'package:tmail_ui_user/features/login/data/local/oidc_configuration_cache_manager.dart';
import 'package:tmail_ui_user/features/login/data/local/token_oidc_cache_manager.dart';
import 'package:tmail_ui_user/features/mailbox/data/local/mailbox_cache_manager.dart';
@@ -42,8 +44,10 @@ class LocalBindings extends Bindings {
Get.put(TokenOidcCacheClient());
Get.put(TokenOidcCacheManager(Get.find<TokenOidcCacheClient>()));
Get.put(AccountCacheClient());
Get.put(AuthenticationInfoCacheClient());
Get.put(AccountCacheManager(Get.find<AccountCacheClient>()));
Get.put(EncryptionKeyCacheClient());
Get.put(EncryptionKeyCacheManager(Get.find<EncryptionKeyCacheClient>()));
Get.put(AuthenticationInfoCacheClient());
Get.put(AuthenticationInfoCacheManager(Get.find<AuthenticationInfoCacheClient>()));
Get.put(OidcConfigurationCacheManager(Get.find<SharedPreferences>()));
Get.put(LanguageCacheManager(Get.find<SharedPreferences>()));
@@ -54,6 +58,7 @@ class LocalBindings extends Bindings {
Get.find<RecentSearchCacheClient>(),
Get.find<TokenOidcCacheClient>(),
Get.find<AccountCacheClient>(),
Get.find<EncryptionKeyCacheClient>(),
Get.find<AuthenticationInfoCacheClient>(),
));
}