TF-1810 Add StoreDetailedEmailToCacheInteractor to store detailed email to cache
(cherry picked from commit 60a91537f7ea1225b5ca67f6dd9ef358b33939da)
This commit is contained in:
@@ -4,6 +4,7 @@ import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/app_toast.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/config/app_config_loader.dart';
|
||||
import 'package:core/utils/file_utils.dart';
|
||||
import 'package:device_info_plus/device_info_plus.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
@@ -58,5 +59,6 @@ class CoreBindings extends Bindings {
|
||||
Get.put(const Uuid());
|
||||
Get.put(CompressFileUtils());
|
||||
Get.put(AppConfigLoader());
|
||||
Get.put(FileUtils());
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:tmail_ui_user/features/caching/clients/account_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/clients/authentication_info_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/caching_manager.dart';
|
||||
import 'package:tmail_ui_user/features/caching/clients/detailed_email_hive_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/clients/email_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/clients/encryption_key_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/clients/fcm_cache_client.dart';
|
||||
@@ -26,6 +27,8 @@ import 'package:tmail_ui_user/features/login/data/local/token_oidc_cache_manager
|
||||
import 'package:tmail_ui_user/features/mailbox/data/local/mailbox_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/data/local/share_preference_spam_report_data_source.dart';
|
||||
import 'package:tmail_ui_user/features/manage_account/data/local/language_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/offline_mode/manager/detailed_email_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/offline_mode/manager/detailed_email_cache_worker_queue.dart';
|
||||
import 'package:tmail_ui_user/features/push_notification/data/local/fcm_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/thread/data/local/email_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/main/exceptions/cache_exception_thrower.dart';
|
||||
@@ -36,6 +39,7 @@ class LocalBindings extends Bindings {
|
||||
void dependencies() {
|
||||
_bindingException();
|
||||
_bindingCaching();
|
||||
_bindingWorkerQueue();
|
||||
}
|
||||
|
||||
void _bindingCaching() {
|
||||
@@ -64,6 +68,8 @@ class LocalBindings extends Bindings {
|
||||
Get.put(FcmCacheClient());
|
||||
Get.put(FCMCacheManager(Get.find<FcmCacheClient>(),Get.find<FCMSubscriptionCacheClient>()));
|
||||
Get.put(HiveCacheVersionClient(Get.find<SharedPreferences>(), Get.find<CacheExceptionThrower>()));
|
||||
Get.put(DetailedEmailHiveCacheClient());
|
||||
Get.put(DetailedEmailCacheManager(Get.find<DetailedEmailHiveCacheClient>()));
|
||||
Get.put(CachingManager(
|
||||
Get.find<MailboxCacheClient>(),
|
||||
Get.find<StateCacheClient>(),
|
||||
@@ -80,4 +86,8 @@ class LocalBindings extends Bindings {
|
||||
void _bindingException() {
|
||||
Get.put(CacheExceptionThrower());
|
||||
}
|
||||
|
||||
void _bindingWorkerQueue() {
|
||||
Get.put(DetailedEmailCacheWorkerQueue());
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
class AppConstants {
|
||||
static const int limitCharToStartSearch = 3;
|
||||
static const String applicationName = 'TeamMail';
|
||||
}
|
||||
Reference in New Issue
Block a user